Skip to main content
gamedev.net
🔒 Locked

Big-O Notation

Started by sofsenint May 1, 2003 at 5:51 PM 3 replies 1.1k views
Original Post
sofsenint
sofsenint
I''ve been preparing for the APCS AB exam next Wednesday. I''ve heard that there''s a lot of questions about Big-O notation on it and have been having a littlte bit of trouble with it. Does anyone know of a good online lesson over it? ----------------------------- Weeks of programming can save you hours of planning. There are onle 10 kinds of people in this world-- those who understand binary and those who don''t.
-----------------------------Weeks of programming can save you hours of planning.There are 10 kinds of people in this world-- those who understand binary and those who don't.
Dwiel
Dwiel
It''s funny you ask necause I seem to have been taking a previous year''s exam and run across a question about it, but had never heard of it let alone know what they were talking about...

I Also would like to have some info on what it is... Thanx a lot!

Dwiel

sofsenint
sofsenint
Thanks a lot for your help! Sorry that I didn't search on Google first, I should have thought of that.

BTW (to Tazzel3D)- Big O notation is a method of classifying algorithms by how efficient their run-times are. You typically use the number of items the algorithm is acting on as n. So, an algorithm that looks at all n items, or some part of n directly proportional to the number of items would be O(n). An algorithm that wasn't at all affected by the number of items in n would be O(1). Something like a binary search would be O(log n), while an insertion sort would be O(n^2). The article Burning_Ice gave can explain it better than I can.

[edited by - sofsenint on May 1, 2003 10:51:48 PM]
-----------------------------Weeks of programming can save you hours of planning.There are 10 kinds of people in this world-- those who understand binary and those who don't.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.