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
Document preview thumbnail
Preview 1 out of 2 pages
Exam (elaborations)

data structure and algorithm examinations revision questions

Document preview thumbnail
Preview 1 out of 2 pages

This document will help you build your confidence to sit for the main and assessment exams.

Content preview

**EXAMINATION REVISION QUESTIONS: SET 1**



**Linear Data Structures (Stack, Queue):**

1. (5 marks): Define a stack and a queue. Please provide an example for each, highlighting their
behaviors: Last In, First Out (LIFO) for stacks and First In, First Out (FIFO) for queues.



2. (5 marks): Explain how a stack checks for balanced parentheses in an expression, along with a
brief example.



**Non-Linear Data Structures (Tree, Graph, Heaps):**

3. (5 marks): Describe the key properties of a binary search tree (BST) and how its structure
enhances search efficiency.



4. (5 marks): Differentiate between Depth-First Search (DFS) and Breadth-First Search (BFS).
Provide scenarios where each is preferable.



5. (5 marks): What is a heap? Describe the differences between a min-heap and a max-heap.



6. (5 marks): Explain a binary tree and the difference between complete and full binary trees.



**Data Dictionaries (Hash Tables):**

7. (5 marks): What is a hash table? Discuss hash collisions and one method for resolving them.



8. (5 marks): Describe the average-case time complexity for searching, inserting, and deleting in
a well-implemented hash table.



**Sorting Algorithms:**

Document information

Study
Uploaded on
March 28, 2025
Number of pages
2
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$6.36

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

Sold
0
Followers
0
Items
2
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced 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