
Data Structures and Algorithms Flashcard

Flashcard
•
English
•
University
•
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
Similar Resources on Wayground
15 questions
Data Structures Level-2

Flashcard
•
University
10 questions
Data Structures Flashcard

Flashcard
•
University
10 questions
Process in Operating System

Flashcard
•
University
10 questions
Relations and Functions

Flashcard
•
12th Grade - University
15 questions
ECS 32B Flashcardizz

Flashcard
•
University
15 questions
Exam 3 Class Review Bio 110

Flashcard
•
University
15 questions
Flashcard on Sri Lankan Robotics Challenge

Flashcard
•
University
15 questions
Binary Numbers Flashcard

Flashcard
•
12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade