100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

samenvatting datastructuren

Rating
4,0
(1)
Sold
5
Pages
36
Uploaded on
27-12-2019
Written in
2018/2019

Samenvatting van het vak Datastructuren zoals het gegeven wordt bij Informatica aan de Universiteit Leiden.

Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
December 27, 2019
Number of pages
36
Written in
2018/2019
Type
Summary

Subjects

Content preview

Samenvatting Datastructuren
Timo Kats, Informatica en Economie




1

,Indeling:
1. Basic Datastructures
2. Tree Traversal
3. Binary Search Trees
4. Balancing Binairy trees
5. Priority Queues
6. B-Trees
7. Graphs
8. Hash Tables
9. Data Compression
10. Pattern Matching




(ADT’s zijn rood omdat ze letterlijk teruggevraagd worden in het TT, de andere onderwerpen moet je
vooral kunnen toepassen)




2

,1: Basic Datastructures:


Wat is een ADT (Abstract Data Structure)?
Een abstracte datastructuur is een beschrijving van een datastructuur, met
de specificatie van wat er opgeslagen wordt (de data en hun structuur) en
welke operaties op de data zijn toegestaan.




Stack:
• LIFO, data wordt bovenaan de ‘Stack’ toegevoegd.
• ADT Stack:
▪ INITIALIZE: construct an empty sequence ().
▪ ISEMPTY: check whether there the stack is empty, i.e., contains
no elements).
▪ SIZE: return the number of elements, the length of the
sequence(x1,...,xn).
▪ TOP: returns the top xn of the list (x1,...,xn). Undefined on the
empty sequence.
▪ PUSH(x): add the given element x to the top of the sequence
(x1,...,xn), so afterwards the sequence is (x1,...,xn,x).
▪ POP: removes the topmost xn element of the sequence
(x1,...,xn), so afterwards the sequence is (x1,...,xn−1).
Undefined on the empty sequence.




3

, Queue:
• FIFO, data wordt opgeslagen in dezelfde volgorde als het wordt
toegevoegd.
• ADT Queue:
▪ INITIALIZE: construct an empty sequence ().
▪ ISEMPTY: check whether there the queue is empty, i.e., contains
no elements).
▪ SIZE: return the number of elements, the length of the
sequence(x1,...,xn).
▪ FRONT: returns the first element x1 of the sequence (x1,...,xn).
Undefined on the empty sequence.
▪ ENQUEUE(x): add the given element x to the end/back of the
sequence (x1,...,xn), so afterwards the sequence is (x1,...,xn,x).
▪ DEQUEUE: removes the first element of the sequence (x1,...,xn), so
afterwards the sequence is (x2,...,xn). Undefined on the empty
sequence.




List:
• Slaat lineaire sequenties van elementen op.
• ADT List:
▪ INITIALIZE: construct an empty List().
▪ EMPTY TEST: check whether there the stack is empty, i.e., contains
no elements).
▪ RETRIEVAL: Get an element from the List
▪ CHANGE and DELETION of the value stored at a certain position
▪ ADDITION(x) of a new value "in between" two existing values, as
well as before the first or after the last position.




4

Reviews from verified buyers

Showing all reviews
5 year ago

4,0

1 reviews

5
0
4
1
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
tpakats Universiteit Leiden
Follow You need to be logged in order to follow users or courses
Sold
43
Member since
6 year
Number of followers
30
Documents
12
Last sold
11 months ago
Bachelor Informatica en Economie samenvattingen

4,8

5 reviews

5
4
4
1
3
0
2
0
1
0

Recently viewed by you

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 notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Frequently asked questions