Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary IB Computer Science HL Notes: Unleash Your Potential

Rating
-
Sold
-
Pages
31
Uploaded on
13-10-2023
Written in
2022/2023

For IB Computer Science Higher Level (HL) students, our HL notes are the perfect resource to conquer the challenging aspects of the curriculum. Dive deep into advanced topics, including data structures, algorithms, and AI, all aligned with the IB Computer Science HL syllabus. These comprehensive notes provide in-depth insights, practice questions, and guidance to help you excel in assessments and the HL-specific components of the IB exams. Elevate your understanding and performance in IB Computer Science HL with these specialized student notes.

Show more Read less

Content preview

IB HL Computer Science
___

Notes


Topic 5 Abstract data structure
5.1.4 two dimensional array




Indexed by two number [x][y]

Also access value with two indexes



5.1.6 Stack

● Last in first out

, ● Pop - remove


● Push - add


● isEmpty - return true if stack is empty


● Use for chronological order and undo
● Can use depth instead of index



5.1.8 Queue



● Enqueue - add an item to the end of the queue
● Dequeue - remove and return the first item from the queue
● First in First out
● Uses for situations where order is required
● Printer queue or ticketing system

5.1.11 Static vs Dynamic

● Static size is constant
● Statis is usually a less effective usage of storage space
● Dynamic size changes with the elements
● Dynamic is associated with while loop
● Static is associated with for loop
● Dynamic uses nodes

,5.1.12 Linked list




● Each element has a node that points to the next element
● The head points to the first element
● In order to access an element, you have to follow the pointers from
the beginning
● The last node contains a null pointer

5.1.13




Changing a linked list is easier than a normal list because only the nodes have to
change

, Singly linked list

There is a node pointing to the next element



Doubly linked list

There is a node pointing to the next element and the previous element



Circular linked list

Last link points back to the first one

Can cause infinite loop

The one on the rightmost is the head.



5.1.14 - 5.1.17 Tree
● Binary and non binary tree
● Binary tree node can’t have more than 2 children
● A null pointer is an empty binary tree
● Root is the first element on top
● Leaf are nodes that have no children
● Subtree are parent and children that are a part of a bigger tree
● There are left child and right child

Document information

Uploaded on
October 13, 2023
Number of pages
31
Written in
2022/2023
Type
SUMMARY
£7.38
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
thanatvarinkittikasemsak

Get to know the seller

Seller avatar
thanatvarinkittikasemsak The University of Birmingham
View profile
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
9
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions