• 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
  • 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 always had trouble remembering the rules.

  • 10 modules, 105 lessons and 688 questions
  • Just log in and learn anytime and from anywhere
  • Your personal progress stored in your account
  • Download the 2026 Grammar Guide (PDF)
Join free

Already have an account? Sign in

See what’s in the course

Primary Sidebar

2.4M761.4K165.8K

Free 2026 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

Latest Posts

  • 100 Best Synonyms for “Capture” October 15, 2026
  • Present Simple Negative Sentences Exercise October 14, 2026
  • 100 Best Synonyms for “Reinforces” October 14, 2026
  • 100 Best Synonyms for “Perplexing” October 14, 2026
  • Improve, enhance, ameliorate, and augment: choosing the right word October 14, 2026
  • The origin and meaning of “no great shakes” October 14, 2026
  • Distancing and Impersonal Structures Exercise October 14, 2026
  • 100 Best Synonyms for “Call for” October 14, 2026
  • Paraphrasing Source Ideas Exercise October 14, 2026
  • 100 Best Synonyms for “Regardless” October 14, 2026
Home of English Grammar

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

Join free

Learn

  • Exercises
  • Matches
  • Grammar rules
  • Vocabulary lists
  • Writing guides
  • Online tools

More

  • Top social media posts
  • Various posts
  • Contact

Account

  • Join free
  • Grammar Course
  • Free grammar guide (PDF)

Copyright © 2026 EnglishGrammar.org

  • Disclaimer
  • Privacy policy
  • Refund policy
  • Terms
  • Sitemap