Micro 2
Micro 2
(i) Directed Graph Quick Sort is a divide-and-conquer algorithm for sorting an array. used for solving optimization and decision-making problems by
A directed graph, or digraph, is a type of graph in which the edges Here's the step-by-step process: breaking them down into smaller, overlapping subproblems. Here's
have a direction. Each edge is represented as an ordered pair (u,v), an analysis of its advantages and drawbacks:
where u is the starting vertex (source), and v is the ending vertex Steps of the Algorithm:
(destination). 1. Base Case: Advantages of Dynamic Programming
The direction of the edge indicates the flow or If the array has zero or one element, it is already 1. Optimizes Recursive Problems: