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 built-in 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:
sort((), ());
In this video, you’ll 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 you’ll see in this video, the ...
#ProgrammingKnowledge #Data_Structures_And_Algorithms #Data_Structures #algorithm #Algorithms #Algorithms_Tutorial #Data_Structures_Tutorial #Stacks_and_Queues #Basic_Algebra #Advanced_Algorithms
20221020
8DAnPHJ3FYk
1 view
72
20
1 week ago 00:37:07 1
What did the Ancient Romans eat?
1 week ago 00:57:21 1
The Best of Vivaldi - The Four Seasons
1 week ago 00:02:18 1
Automatic Folding Package Machine/Автоматическая машина для упаковки в фальцы
1 week ago 00:09:13 1
English Daily Life Conversation - Mindfulness For Mental Health - Speaking English For Everyday Life
1 week ago 00:10:22 1
Practice Basic English Conversation - Yoga - Flexibility Exercise and English Language Session
1 week ago 00:11:20 1
Unboxing and Review: Xyber XPC Cybertruck Mini PC
1 week ago 00:35:52 1
6 Most DISTURBING Camping Encounters Ever Caught On Camera
1 week ago 00:37:18 1
HARE KRISHNA HARE RAMA || BEST BHAJAN 2024 || हरे कृष्णा HariBhakti Leo Dey ~ ISKCON Kirtan #mayapur