Shortest Path Calculation Between Bus Stops

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

The total number of elements in the two matrices is used to _______ them together

multiply

Instructions are executed one after another, with no _______ operations

concurrent

The worst case running time of an Algorithm is the _______ running time for any input of size n

longest

Running-time bounds are for the _______ of Algorithms, rather than programs

<p>algorithms</p> Signup and view all the answers

An algorithm is correct if for every input instance, it halts with the correct ______

<p>output</p> Signup and view all the answers

Incorrect algorithms might not halt at all on some input instances or halt with other than the desired ______

<p>answer</p> Signup and view all the answers

The input size, typically the number of items in the input, is the main consideration affecting the running ______

<p>time</p> Signup and view all the answers

A bus driver wishes to follow the shortest path from one stop to another. Between every two stops, if a road exists, it may take a different ______ from other roads.

<p>time</p> Signup and view all the answers

The road from view point 1 to 2 is different from that from view point 2 to 1, as roads are ______-way.

<p>one</p> Signup and view all the answers

If n = 30, it will be impossible to run the algorithm that lists all the paths between a given pair of view points because the number of paths is n divided by ______.

<p>e</p> Signup and view all the answers

Algorithm 1 for the Selection Problem involves reading N numbers into an array, sorting the array in decreasing order, and returning the element in position ______.

<p>k</p> Signup and view all the answers

The representation of information in a manner suitable for communication or analysis by humans or machines is called ______

<p>data</p> Signup and view all the answers

A set of objects, each called an instance of the data type, is known as a data ______

<p>type</p> Signup and view all the answers

A specific encoding of an instance is called a ______

<p>representation</p> Signup and view all the answers

Opaque data types have a representation that is ______ to the user

<p>not known</p> Signup and view all the answers

A composite data type stores a collection of individual data components under one variable name, and allows the individual data components to be ________

<p>accessed</p> Signup and view all the answers

The two forms of composite data types are UNSTRUCTURED and ________

<p>STRUCTURED</p> Signup and view all the answers

The member selection operator (period.) is used between the variable name and the member identifier to access individual members of a record type variable like ________

<p>struct</p> Signup and view all the answers

Records (________) are very useful for modeling objects that have a number of characteristics

<p>structs</p> Signup and view all the answers

Flashcards are hidden until you start studying

More Like This

Shortest Path Algorithms Overview
16 questions
Introduction to Shortest Path Problems
13 questions
Shortest Path Algorithms
30 questions

Shortest Path Algorithms

SkilledPortland8545 avatar
SkilledPortland8545
Use Quizgecko on...
Browser
Browser