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
Exam (elaborations)

Data Structures Final Exam Questions With 100% Correct Answers | Verified | Updated !!!

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
30-07-2025
Written in
2024/2025

Data Structures Final Exam Questions With 100% Correct Answers | Verified | Updated !!!

Institution
Data Structures
Course
Data Structures

Content preview

Data Structures Final Exam Questions
With 100% Correct Answers | Verified |
Updated !!!
Big Oh Notation CORRECT ANSWERS - Least upper bound measure of the time
complexity of an algorithm

Algorithm Analysis CORRECT ANSWERS - Analyze code to see if its speed and/or
memory consumption is optimal for a given problem

O(1) CORRECT ANSWERS - Big oh of one
- Constant time

O(logn) CORRECT ANSWERS - Logarithmic Time
- As the problem doubles, it only takes one more unit of time

O(n) CORRECT ANSWERS - Linear time
- As the problem doubles so does the amount of work

O(nlogn) CORRECT ANSWERS - Linear log

O(n^2) CORRECT ANSWERS - Quadratic

Linear Search CORRECT ANSWERS - O(n)
- Typically in terms of worst case
- For unsorted array

Binary Search CORRECT ANSWERS - O(logn)
- Divide and conquer algorithm instead of reading the problem by 1 on each iteration,
we'll reduce it by a fractional amount
- For sorted array

Functional notation CORRECT ANSWERS - A more precise measure of the number of
steps/operations that a given algorithm requires to do complete

Big O from functional notation CORRECT ANSWERS - Keep only the fastest growing
term
- Drop coefficient

Recursion CORRECT ANSWERS - A method that calls itself
- Base case: recursion to stop
- Self-call (maybe indirect)
- Production rule: causes us to approach base case

, Tail Recursion CORRECT ANSWERS - The only self-calls are on the last statement of
the function

Non-tail Recursion CORRECT ANSWERS - Call(s) are embedded in the function body

Indirect Recursion CORRECT ANSWERS A() -> B() -> A()

Excessive Recursion CORRECT ANSWERS - Redundant recursion calls

Arrays CORRECT ANSWERS - Continuous chunk of memory
- Random access
---Element 5 is just as accessible as element 20

Linked Base CORRECT ANSWERS - Pointer/Reference
- One or more that link to another data point/node

Named Nodes CORRECT ANSWERS - Nodes that have a pointer(s) assigned to it that
are held in the list object

Linear Data Structures CORRECT ANSWERS - Straight, effectively single dimension
structure
- Commonly implemented with an array

Stack CORRECT ANSWERS - Linear
- Two basic operations
- Push: add data onto the top of the stack
- Pop: remove data from the top of the stack
--- O(1)

Pop() Operation CORRECT ANSWERS 1) Return value from the top of the stack
2) Shift the top over
3) Clean memory

Queues CORRECT ANSWERS - Linear data structure
- FIFO (First In First Out) or LILO (Last In Last Out)
- Enqueue: add data onto the last data
- Dequeue: remove data in the front

Linked Based Queue structure CORRECT ANSWERS - Singly Linked
- Two named nodes

Array Based Queue structure CORRECT ANSWERS - Pushing F(Front) and E(End)
towards next array

Written for

Institution
Data Structures
Course
Data Structures

Document information

Uploaded on
July 30, 2025
Number of pages
11
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$14.49
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
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.
ElevatedExcellence Exam
Follow You need to be logged in order to follow users or courses
Sold
924
Member since
3 year
Number of followers
504
Documents
18336
Last sold
7 hours ago
GETSOCIO EDUCATION

We have launched our assignments at a very reasonable price so that every student can enjoy its features. Our new method is gathering quite a positive feedback from the students, and many of our alumnus are fully satisfied with it. We would be glad if you purchase from us. THANK YOU!!

3.8

175 reviews

5
79
4
36
3
29
2
10
1
21

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