Please enable JavaScript.
Coggle requires JavaScript to display documents.
Data Structures (Tuple (Immutable - can not change the data, Static -…
Data Structures
Arrays
1,2 and 3 dimension
Static - can not be resigned
Mutable
One data type
List
Dynamic
One data type
Mutable - can change the data
e.g.
mylist.add("milk")
mylist.add("bread")
mylist = new list of string
mylist[0] //milk
Record
Mutable
Static
Different data types
e.g.
date of birth as data
}
age as integer
name as string
pupil.name = "John"
pupil = new record {
Tuple
Immutable - can not change the data
Static - fixed size
Different data types
Pupil = ("John", 17, 3/1/2003)
name = pupil[0]
Linked-lists
Hash table
Stack
LIFO object (Last In First Out)
Queue
FIFO object (First In First Out)
Graphs
Trees
Pseudo-code for all data structures
adding
removing
creating
searching