Master IB Computer Science Topic 4 with our dedicated student notes designed to align seamlessly with the IB curriculum. Delve deep into the world of computational mathematics, covering numerical methods, data representation, and more. These notes are your invaluable resource to excel in class asse...
○ Just going through each element until it finds a match
● Binary search
○ For finding an item in a sorted list
○ Also known as half-interval search
○ Compare the target to the element in the middle
○ Eliminate lower half if target is higher and opposite for lower
○ List can have duplicate
○ Faster than sequential search
● Bubble sort
○ Compares adjacent items and swap them if they are in the wrong
order then move to the next adjacent items
○ Slow for big list
○ Having one loop through the list without any swaps means the list is
sorted
● Selection sort
, ○ Loop through the list to get the lowest/highest number and swap it
with the current one
○ Repeat for each elements
4.3.1 Fundamental operations
● Fundamental operations of the cpu
○ Add
■ Can be adding two numbers together
■ Can also be adding a number to the CPUs
○ Compare
○ Retrieve (or Load)
○ Store (or Save)
● Conditional instructions
○ And
○ OR
○ XOR
■ Either but not both
○ Neither
4.3.2 Complexity of instructions
● Fundamental instruction vs compound instruction
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller thanatvarinkittikasemsak. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £7.31. You're not tied to anything after your purchase.