Skip to content

Algorithms

Topological sort is best defined as which of the following?

Difficulty: Medium

About this MCQ

This Medium Algorithms MCQ checks one syllabus fact.

The question is: “Topological sort is best defined as which of the following?”

The accepted answer is C. An ordering of vertices in a directed acyclic graph such that for every edge, the source vertex comes before the destination vertex.. Topological sort is best defined as which of the following is answered by An ordering of vertices in a directed acyclic graph such that for every edge the source vertex comes before the destination vertex option C Option A A sorting algorithm that repeatedly selects the smallest remaining element and moves it to its correct position does not match the stem it is a near-miss used to catch incomplete recall of An ordering of vertices in a directed acyclic graph such that for every edge the source vertex comes before the destination vertex Option B A sorting algorithm that builds the final sorted array one element at a time by inserting each element into its correct position does not match.

Correct answer

C. An ordering of vertices in a directed acyclic graph such that for every edge, the source vertex comes before the destination vertex.

Explanation

Topological sort is best defined as which of the following is answered by An ordering of vertices in a directed acyclic graph such that for every edge the source vertex comes before the destination vertex option C Option A A sorting algorithm that repeatedly selects the smallest remaining element and moves it to its correct position does not match the stem it is a near-miss used to catch incomplete recall of An ordering of vertices in a directed acyclic graph such that for every edge the source vertex comes before the destination vertex Option B A sorting algorithm that builds the final sorted array one element at a time by inserting each element into its correct position does not match.

Source: Algorithms Official Reference Guide

Tags: computer science, algorithms, problem solving, complexity analysis

Submitted by: MCQsHub Editorial

Related MCQs

More Algorithms MCQs