- Joined
- Apr 22, 2007
- Messages
- 1,960
This is for Dr Super Good...
Now, DSG was contradicting me on one aspect of a storage system. He explained to me that his storage system looped through an array of handles to find the handle that you wanted. Now I told him that typecasting + arrays would be a much better idea (considering the amount of iterations), but he kept saying I was wrong.
So he was basically saying that O(n) is faster than O(1).
Can anyone please get on my side and prove to him that O(1) is faster than O(n), because this is getting ridiculously retarded.
Now, DSG was contradicting me on one aspect of a storage system. He explained to me that his storage system looped through an array of handles to find the handle that you wanted. Now I told him that typecasting + arrays would be a much better idea (considering the amount of iterations), but he kept saying I was wrong.
So he was basically saying that O(n) is faster than O(1).
Can anyone please get on my side and prove to him that O(1) is faster than O(n), because this is getting ridiculously retarded.