Summary
Samenvatting - iad1
- Course
- Institution
Samenvatting van alle nuttige informatie van iad1 die je nodig hebt voor het tentamen
[Show more]Preview 3 out of 25 pages
Some examples from this set of practice questions
1.
Wat is de complexiteit van bubble sort?
Answer: O(n^2)
2.
Wat is complexiteit van selection sort?
Answer: O(n^2)
3.
Wat is de worst case complexiteit van quick sort?
Answer: O(n^2)
4.
Wat is de worst case complexiteit van merge sort?
Answer: O(n log(n))
5.
Wat is de worst case complexiteit van heap sort?
Answer: O(n log(n))
6.
Sorteer 9, 5, 7, 2, 8, 4, 3 met selection sort
Answer: Je hebt steeds het kleinste getal vooraan gezet: 9, 5, 7, 2, 8, 4, 3 2, 5, 7, 9, 8, 4, 3 3, 7, 9, 8, 4, 5 4, 9, 8, 7, 5 5, 8, 7, 9 7, 8, 9 8, 9 9 Je hebt steeds het grootste getal achteraan gezet: 9, 5, 7, 2, 8, 4, 3 3, 5, 7, 2, 8, 4, 9 3, 5, 7, 2, 4, 8 3, 5, 4, 2, 7 3, 2, 4, 5 3, 2, 4 2, 3 2
7.
Sorteer 9, 5, 7, 2, 8, 4, 3 met quick sort
Answer: Je kiest steeds het laatste getal als pivot: 9, 5, 7, 2, 8, 4, 3 2, |3|, 9, 5, 7, 8, 4 |2|, |3|, |4|, 9, 5, 7, 8 |2|, |3|, |4|, 5, 7, |8|, 9 |2|, |3|, |4|, 5, |7|, |8|, |9| |2|, |3|, |4|, |5|, |7|, |8|, |9| Je kiest steeds het eerste getal als de pivot: 9, 5, 7, 2, 8, 4, 3 5, 7, 2, 8, 4, 3, |9| 2, 4, 3|5|, 7, 8, |9| |2|, 4, 3, |5|, |7|, 8, |9| |2|, 3, |4|, |5|, |7|, |8|, |9| |2|, |3|, |4|, |5|, |7|, |8|, |9|
8.
Sorteer [15, 8, 10, 5, 7, 6] met heap sort
Answer: Begin met max-heap uitgetekend: 15 10 8 5 7 6 3 Tussen stap: [10, 15] 8 7 6 5 Tussen stap: [7, 8, 10, 15] 6 5 Einde: [5, 6, 7, 8, 10, 15]
9.
Hoe bereken je de load factor van een hash table
Answer: load factor = aantal elementen / aantal plekken in de hash table
10.
Hoe ontstaan collisions in een hash table en op welke manieren kun je colliosions oplossen?
Answer: Collisions ontstaan als een key-value paar een hash waarde krijgt die al gevuld is in de tabel. De collision is op te lossen met lineair probin en separate chaining
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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!
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
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.
Stuvia is a marketplace, so you are not buying this document from us, but from seller Informatica. Stuvia facilitates payment to the seller.
No, you only buy these notes for $10.76. You're not tied to anything after your purchase.
4.6 stars on Google & Trustpilot (+1000 reviews)
62774 documents were sold in the last 30 days
Founded in 2010, the go-to place to buy study notes for 15 years now