mikay
38 Questions
43 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Part of ADT: data and operation

  • External ADT (correct)
  • Internal ADT

used for storing elements where each is separate object

  • Queue
  • Stack
  • Tree
  • Linked List (correct)

algorithm must terminate after specified number of steps

  • Uniqueness
  • Terminate
  • Finiteness (correct)

repeating action multiple times

<p>iteration (C)</p> Signup and view all the answers

problem broken into smaller sub-problems

<p>divide and conquer (D)</p> Signup and view all the answers

single call itself each time function runs

<p>linear recursion (B)</p> Signup and view all the answers

terminate when reached base case

<p>recursion (A)</p> Signup and view all the answers

elements access in sequential order but stored unsystematically

<p>Linear (D)</p> Signup and view all the answers

logical description on how data viewed

<p>Abstract Data Type (C)</p> Signup and view all the answers

LIFO

<p>Stack (B)</p> Signup and view all the answers

step by step instructions to be executed insequence for solving problem

<p>Algorithm (C)</p> Signup and view all the answers

algorithm must have 1 or more results with specified relation to input

<p>Output (D)</p> Signup and view all the answers

occurs when function calls itself once or multiple times to solve problem

<p>Recursion (B)</p> Signup and view all the answers

calls itself twice during course of execution

<p>Binary Recursion (A)</p> Signup and view all the answers

same with Divide and Conquer, except results of sub-problems reused for overlapping sub-problems

<p>Dynamic Programming (C)</p> Signup and view all the answers

set of ordered pairs where elements called identifiers and values called content

<p>Map (B)</p> Signup and view all the answers

FIFO

<p>Queue (A)</p> Signup and view all the answers

not main operation that defined ADT

<p>creating (D)</p> Signup and view all the answers

elements stored and accessed in non-sequential order

<p>Non-Linear (C)</p> Signup and view all the answers

special format for storing and organizing data

<p>Data Structure (D)</p> Signup and view all the answers

call is the last statement that is executed by function

<p>Tail Recursion (B)</p> Signup and view all the answers

terminated condition if proven false

<p>Iteration (B)</p> Signup and view all the answers

represents hierarchical nature of structure in graphical form

<p>tree (C)</p> Signup and view all the answers

special type of queue elements processed by order

<p>primary queue (A)</p> Signup and view all the answers

result of each step depends on input and result of previous step

<p>uniqueness (C)</p> Signup and view all the answers

optimal approach is always chosen in solving problem

<p>greedy algorithm (D)</p> Signup and view all the answers

when divided into two functions that call each other

<p>mutual recursion (A)</p> Signup and view all the answers

algorithm has zero or more well-defined data given before algorithm begins

<p>input (D)</p> Signup and view all the answers

representation and implementation

<p>Internal ADT (B)</p> Signup and view all the answers

other term for external adt

<p>public (A)</p> Signup and view all the answers

when method directly calls itself

<p>direct recursion (D)</p> Signup and view all the answers

TRUE or FALSE: Each iteration doesn't require extra memory

<p>True (A)</p> Signup and view all the answers

complete binary tree

<p>heap (D)</p> Signup and view all the answers

consist of vertices(nodes) and set of edges(relations) between pair of vertices

<p>graph (B)</p> Signup and view all the answers

collection of elements where each item is unique

<p>set (A)</p> Signup and view all the answers

not part of wall of adt

<p>remove empty (C)</p> Signup and view all the answers

each instruction has to be clear and unambiguous

<p>Definiteness (A)</p> Signup and view all the answers

when method calls another method, eventually calling original method

<p>Indirect Recursion (C)</p> Signup and view all the answers
Use Quizgecko on...
Browser
Browser