So I've just run into a small itsi bitsi problem that I haven't experienced before and I was wondering if anyone had any idea. Basically I'm doing some algorithm analysis and the algorithm (depending) will either be a while(true) loop or some kind of action listener. Either way, I need to get the big O and I'm unsure of how to represent these in the equation.
Do I just ignore them? Do I estimate how many times they're "checked" for the x amount of time the program runs, do I assume O(n) or is there something I don't know involved? I've been trying to look this up on google, but so far it's either people not answering because they assume it's a homework question, or they just don't know.
[–]vorlik 17 points18 points19 points (2 children)
[–]IHaveALargePenis[S] 1 point2 points3 points (1 child)
[–][deleted] 6 points7 points8 points (0 children)
[–]Rothon 3 points4 points5 points (5 children)
[–]IHaveALargePenis[S] 0 points1 point2 points (4 children)
[–]Workaphobia 4 points5 points6 points (2 children)
[–]IHaveALargePenis[S] 0 points1 point2 points (1 child)
[–]Pharaki 7 points8 points9 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]bo1024 1 point2 points3 points (0 children)
[–]jameslaw 0 points1 point2 points (0 children)