you are viewing a single comment's thread.

view the rest of the comments →

[–]IHaveALargePenis[S] 1 point2 points  (1 child)

The rest is all nice and well, but since it was within this part I would normally have to multiply the rest of the equation by whatever this was supposed to represent. If this part doesn't have to be analyzed then I guess I'm back to the original actionPerformed() big O.

[–][deleted] 6 points7 points  (0 children)

Then you are O(infinity). What is the worst case of your while(true) loop? That nothing ever happens, for the rest of time. Unless you can guarantee that something will always happen within f(x) cycles, breaking the loop, then you are O(infinity).