
Data Structures and Algorithms Flashcard
Flashcard
•
English
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the time complexity of picking an element in a binary search tree T that is smaller than the maximum element in T?
Back
Θ(1)
2.
FLASHCARD QUESTION
Front
What is an application of queues in computer science?
Back
Job scheduling, Print queue management, Network protocol implementation, All of the above.
3.
FLASHCARD QUESTION
Front
Which sorting algorithm has a time complexity of O(n log n)?
Back
Merge Sort.
4.
FLASHCARD QUESTION
Front
What is the output of sizeof(arr) for int arr[10] in C?
Back
40.
5.
FLASHCARD QUESTION
Front
What does the following pseudo-code do? function traverse(head): current = head while current != NULL: print(current.data) current = current.next
Back
Prints all elements of a linked list.
6.
FLASHCARD QUESTION
Front
Define a binary search tree (BST).
Back
A binary search tree is a data structure that maintains sorted order, where each node has at most two children, and the left child contains values less than the parent node, while the right child contains values greater.
7.
FLASHCARD QUESTION
Front
What is the average time complexity for searching an element in a balanced binary search tree?
Back
Θ(log n).
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
Funciones y Servicios
Flashcard
•
University - Professi...
15 questions
Domande al passato sulla vita quotidiana
Flashcard
•
University - Professi...
7 questions
Adverbios
Flashcard
•
Professional Development
16 questions
SAÚDE PÚBLICA
Flashcard
•
12th Grade - University
10 questions
Professional Communication in Agriculture
Flashcard
•
University
10 questions
Gmail Flashcard
Flashcard
•
University
11 questions
Día Internacional de la mujer
Flashcard
•
University
10 questions
Synthetic Personalisation A level English
Flashcard
•
12th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade