• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Home of English Grammar
  • Home
  • Course
  • Exercises
  • Grammar Rules
  • Matches
  • Posts
  • Tools
    • Grammar Checker
    • Very Replacer
    • Word Counter
  • Vocabulary Lists
  • Archives
    • Social Media Posts
    • Writing Guides
  • Sign in
  • Join free

Algorithm Vocabulary Exercise

September 17, 2026 C1pdf

Complete the 12 sentences below. Choose the best answer for each one.

Progress 0 of 12 answered
1Before scoring each route, the program must traverse the ............... in depth-first order.
Wrong!
"graph" is correct because depth-first traversal applies to nodes and edges in a graph, not to a rule-of-thumb heuristic.
2To avoid recomputation, the recursive function ............... the results of previously solved subproblems.
Wrong!
"memoizes" is correct because storing results of previously solved subproblems is memoization.
3At every junction, the ............... algorithm selects the cheapest available edge without revisiting earlier decisions.
Wrong!
"greedy" is correct because making the locally best choice at each step defines a greedy algorithm.
4Once the lower bound exceeds the current best cost, the solver prunes that ............... of the search tree.
Wrong!
"branch" is correct because a search tree has branches that can be pruned when they cannot contain a better solution.
5Because the matrix is stored explicitly, the algorithm's ............... grows quadratically with the number of vertices.
Wrong!
"space complexity" is correct because the sentence refers to additional memory, not running time.
6Given identical input and initial state, a ............... algorithm always returns the same output.
Wrong!
"deterministic" is correct because the same input always produces the same output.
7During breadth-first search, the queue receives the ............... of the current node before the next layer is explored.
Wrong!
"successors" is correct because breadth-first search enqueues the nodes directly reachable from the current node.
8Dijkstra's method repeatedly ............... candidate paths from the priority queue in order of increasing tentative distance.
Wrong!
"dequeues" is correct because removing items from a queue or priority queue is dequeuing.
9The hash table resolves the ............... by chaining entries whose distinct keys produce the same hash value.
Wrong!
"collision" is correct because two different keys mapping to the same hash value create a hash collision.
10After every insertion, the ............... of the heap requires each parent to have priority at least as high as its children.
Wrong!
"invariant" is correct because a heap's parent-child ordering rule is a property maintained throughout operations.
11The ............... algorithm updates every vertex's estimate until no further improvement is possible.
Wrong!
"iterative" is correct because the algorithm repeats updates until a stopping condition is reached.
12For comparison-based sorting, the ............... bound proves that any solution must perform at least this many comparisons in the worst case.
Wrong!
"lower" is correct because a lower bound states that any algorithm must take at least a certain amount of work.

Exercise complete

0/ out of 12 correct answers
Challenge a friend
More Exercises →

Answers

  1. Before scoring each route, the program must traverse the graph in depth-first order.
  2. To avoid recomputation, the recursive function memoizes the results of previously solved subproblems.
  3. At every junction, the greedy algorithm selects the cheapest available edge without revisiting earlier decisions.
  4. Once the lower bound exceeds the current best cost, the solver prunes that branch of the search tree.
  5. Because the matrix is stored explicitly, the algorithm’s space complexity grows quadratically with the number of vertices.
  6. Given identical input and initial state, a deterministic algorithm always returns the same output.
  7. During breadth-first search, the queue receives the successors of the current node before the next layer is explored.
  8. Dijkstra’s method repeatedly dequeues candidate paths from the priority queue in order of increasing tentative distance.
  9. The hash table resolves the collision by chaining entries whose distinct keys produce the same hash value.
  10. After every insertion, the invariant of the heap requires each parent to have priority at least as high as its children.
  11. The iterative algorithm updates every vertex’s estimate until no further improvement is possible.
  12. For comparison-based sorting, the lower bound proves that any solution must perform at least this many comparisons in the worst case.

Improve your English grammar, vocabulary and writing

We take you step by step from beginner to advanced, even if you struggled with English at school or have always had trouble remembering the rules.

  • 11 modules, 124 lessons and 812 questions
  • Just log in and learn anytime and anywhere
  • Your progress is saved in your account
  • Download the 2027 Grammar Guide (PDF)
Join free

Already have an account? Sign in

See what’s in the course

Primary Sidebar

2.4M760.9K165.9K

Free 2027 Grammar Guide

  • Download Grammar Guide (PDF)
  • Online grammar course, A1 to C2
  • Weekly exercises and vocabulary
  • Join over 3 million English learners

We respect your privacy. Unsubscribe anytime.

Already have an account? Sign in

Grammar Checker - Try Now

Matches Rankings

    No results yet. Be the first to finish today’s Daily.

      No results yet. Be the first to finish today’s Daily.

        No results yet. Be the first to finish today’s Daily.

          No results yet. Be the first to finish today’s Daily.

          Play Matches

          Latest Posts

          • 100 Best Synonyms for “Needs” November 8, 2026
          • Fortunate vs. fortuitous: Luck or chance? November 8, 2026
          • 100 Best Synonyms for “Sections” November 8, 2026
          • 100 Best Synonyms for “Bravery” November 8, 2026
          • 100 Best Synonyms for “Needed” November 8, 2026
          • 100 Best Synonyms for “Sect” November 8, 2026
          • Syllepsis: the grammar trick that makes a sentence wink November 8, 2026
          • Idiom and Collocation Error Correction Exercise November 8, 2026
          • Negotiation Stance Language Exercise November 8, 2026
          • Sudden, abrupt, unexpected, instant, immediate and instantaneous: how to choose November 8, 2026
          Home of English Grammar

          Free exercises, a step-by-step grammar course, rules and vocabulary lists, with new exercises every week. Join the leading English grammar site with over 3 million followers.

          Join free

          Learn

          • Exercises
          • Grammar course
          • Level test
          • Matches
          • Grammar rules
          • Vocabulary lists
          • Writing guides
          • Online tools

          More

          • Top social media posts
          • Various posts
          • Contact

          Account

          • Join free
          • Free grammar guide (PDF)

          Copyright © 2026 EnglishGrammar.org

          • Disclaimer
          • Privacy policy
          • Terms
          • Sitemap