in reply to Re: Puzzle: The Ham Cheese Sandwich cut.
in thread Puzzle: The Ham Cheese Sandwich cut.
I suspect that a proof of the running time order will concentrate on the expected depth of recursion.
However I believe it will be much harder to prove that the push is O(1) - indeed I suspect it is not - and without that the algorithm as a whole cannot be O(n).
Hugo
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Puzzle: The Ham Cheese Sandwich cut.
by Perl Mouse (Chaplain) on Nov 22, 2005 at 14:05 UTC |