- #1
jhudson1
- 16
- 0
Homework Statement
Here is a pastebin link to my question, it contains an algorithm, my trace of the algorithm, and my question.
Homework Equations
I am interested in the theta notation for the runtime of an algorithm
The Attempt at a Solution
Here is the link
http://mathb.in/1202
My thoughts are that the algorithm must run in either n^2 or n lg (n) where lg = log base 2