Introduction to Sorting Algorithms Data Structures
In this video, we are going to start a new topic: sorting Sorting any sequence means to arrange the elements of that sequence according to some specific criterion. For Example, the array arr 5, 4, 2, 1, 3 after sorting in increasing order will be: arr 1, 2, 3, 4, 5. The same array after sorting in descending order will be: arr 5, 4, 3, 2, 1. C++ STL provides a builtin function sort() that sorts a vector or array (items with random access). Syntax to sort an Array: sort(arr, arr+n); Syntax to sort a Vector: In this video, youll also learn about asymptotic notations, they are basically mathematical notations which represent order of growth of any mathematical function. There are three famous notations which youll see in this video, the. .., ProgrammingKnowledge, DataStructuresAndAlgorithms, DataStructures, algorithm, Algorithms, AlgorithmsTutorial, DataStructuresTutorial, StacksandQueues, BasicAlgebra, AdvancedAlgorithms 20221020 8DAnPHJ3FYk
|