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</p> Signup and view all the answers

    problem broken into smaller sub-problems

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

    single call itself each time function runs

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

    terminate when reached base case

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

    elements access in sequential order but stored unsystematically

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

    logical description on how data viewed

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

    LIFO

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

    step by step instructions to be executed insequence for solving problem

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

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

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

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

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

    calls itself twice during course of execution

    <p>Binary Recursion</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</p> Signup and view all the answers

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

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

    FIFO

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

    not main operation that defined ADT

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

    elements stored and accessed in non-sequential order

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

    special format for storing and organizing data

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

    call is the last statement that is executed by function

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

    terminated condition if proven false

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

    represents hierarchical nature of structure in graphical form

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

    special type of queue elements processed by order

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

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

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

    optimal approach is always chosen in solving problem

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

    when divided into two functions that call each other

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

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

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

    representation and implementation

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

    other term for external adt

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

    when method directly calls itself

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

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

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

    complete binary tree

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

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

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

    collection of elements where each item is unique

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

    not part of wall of adt

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

    each instruction has to be clear and unambiguous

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

    when method calls another method, eventually calling original method

    <p>Indirect Recursion</p> Signup and view all the answers

    Use Quizgecko on...
    Browser
    Browser