Mixed C949 Questions

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

flashcard set

Earn XP

Description and Tags

Data Structures and Algorithms I C949

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

What does an algorithm describe?

A sequence of steps to solve a computational problem or perform a calculation

2
New cards

What does Dijkstra’s algorithm calculate?

The shortest path from a given starting vertex to all other vertices

3
New cards

What type of object can be stored in a Python list?

Any type of object

4
New cards

What are the numbers generated by Python’s random module known as?

Pseudo-random

5
New cards

What is a defining feature of a linked list data structure?

Items are ordered and stored in nodes, each with a pointer to the next

6
New cards

What does a multiplicative string hash function do?

Repetitively multiplies the hash value and adds the ASCII (or Unicode) value of each character in the string

7
New cards

Which ADT allows for a collection of distinct items?

Set

8
New cards

What is list nesting in the Python language?

Putting a list inside another list

9
New cards

What is the maximum floating-point value approximately in a standard 32-bit installation of Python?

1.8×10308

10
New cards

What is the default recursion depth limit in Python?

1000

11
New cards

What is often referred to as the start node in a circular linked list?

The head node

12
New cards

In a programming context, what is a range?

A sequence of values that a variable can take

13
New cards

What is the key distinguishing feature of the selection sort algorithm?

It selects the smallest unsorted element and swaps it with the element at the current position

14
New cards

What is a function that calls itself known as?

Recursive Function

15
New cards

Where is a new node inserted if its key is less than the current node’s key and the current node has no left child?

As the current node’s left child

16
New cards

What does the all pairs shortest path algorithm determine?

The shortest paths between all pairs of vertices in a graph.

17
New cards

What happens when duplicates are passed to the set() function?

The set keeps only one instance of each element

18
New cards

Why is the mid-square hash function typically implemented using binary?

Because a binary implementation is faster