- 9
- 312 797
Coddict
India
Приєднався 6 лип 2020
Want to beautify your learning experience. 😇
Let's build a community for eager learners and code addicts, whom I call 'Coddicts'.🤓
See you soon...
Let's build a community for eager learners and code addicts, whom I call 'Coddicts'.🤓
See you soon...
Radix Sort | Animation | Coddict
Radix Sort is a sorting algorithm that sorts numbers digit by digit, starting from the least significant digit to the most significant. It uses a stable sorting technique like counting sort for each digit. This process is repeated until all digits are sorted.
Check out the short on counting sort first in case you haven't..
And, find the code snippet in the pinned comment.
Check out the short on counting sort first in case you haven't..
And, find the code snippet in the pinned comment.
Переглядів: 497
Відео
Merge Sort under 4 mins | Visualization with animation | Coddict
Переглядів 1,7 тис.8 місяців тому
Recursive in nature, merge sort divides an array in half repeatedly until it can no longer be divided, meaning that it is left with just one element (an array containing one element is always sorted). One sorted array is then created by merging the sorted subarrays. Find the code snippet in the pinned comment. Like, share, and subscribe to show your support.. It matters as you matter.. Music li...
Quick Sort in 2 minutes | Explanation with animation | Coddict
Переглядів 3,8 тис.Рік тому
QuickSort is a sorting algorithm based on the Divide and Conquer algorithm that picks an element as a pivot and partitions the given array around the picked pivot by placing the pivot in its correct position in the sorted array. Subscribe for more such content...
quite helpful
Thanks bro it's really helpful ❤️
❤
Keren❤
Plz make more videos 😢
❤🎉thanks a lot 😢
Very easy to understand through Visualization..Superb
How do u make these animations
This was so helpful thanks❤
What a presentation 🔥 bring such a more videos
For i<n-1 Why? Explain
Since array starts from 0 to 5,and n value here is 6 so it should start from 0 to n-1 (i.e. 6-1 which is 5)
That time block is not empty the same value filled with it
Loved it man, cleared my concept. Thanks bro 👍🏻 🙏🏻
Nice fucking music but fully irritating while Focusing seriously 😒
Best example 😊😊😊❤
Thank you the best short ever
Thanks buddy .. 1. min k andar me revise hogya 👍
Watching it one night before exam ❤❤ Thanks borther ❤❤❤
😮😮😮
helpful
Song name?
Thank you for this amazing short video for exam
Your vedios ❤️❤️❤️❤️ keeep going bro ...m learning from your channel
how you made this animation ?
I just loveeeee.your vedios 🫀🫀🫀
Great explanation man ❤
Can anyone explain what is the j holding when we were doing j=j-1
J would not be holding data, rather j points to index 0 initially, and in while after swap decrement to -1 index and again after while loop completion , j should increase to make space swap for second number ro swap.
Finally found animation with the code
Which application you are using to create animation Plz tell me
i wonder why is it faster that to just sort an array with count sort?
k i looked how count sort works and now i understand. its better to have an array of 10 digits, than an array of 2 billion numbers
2 months after i wrote my exam
Really sorry for that bro.. But, I don't think we should limit our learnings till the exams only, should we?
Code snippet (C++): // The main function to that sorts arr[] // of size n using Radix Sort void radixsort(int arr[], int n) { // Find the maximum number to // know number of digits int m = getMax(arr, n); // Do counting sort for every digit. // Note that instead of passing digit // number, exp is passed. exp is 10^i // where i is current digit number for (int exp = 1; m / exp > 0; exp *= 10) countSort(arr, n, exp); }
Very nice ❤
But this isn't java😢
functions are same in cpp md java
You can use the same logic in java too
Thanks a lot u made it easy in my whole seesion of class 10 i haven't understood but by this video i understood everything. Tomorrow is my computer class 10 board papers i will surely bring 100
Glad to hear that! Best of luck for the exam 👍
its not friendly for computer users like me 🥲. But this is still an awesome shorts, TKS!!!!!!
You can watch the complete version of the video, that one has horizontal orientation.
just inspect(f12) and select video container then add css code block "transform:rotate(-90deg);" good watch :)
Easy explanation 🎉
Thank you mate! Very simple and clear explanation
Glad it helped
@@coddictGod bless you 🙏
Heap sort sir
Sure.. will try to do that soon
Code snippet (c++): int partition(int arr[], int low, int high) { //choose the pivot int pivot = arr[high]; //Index of smaller element and Indicate //the right position of pivot found so far int i = (low-1); for(int j=low; j<=high; j++) { //If current element is smaller than the pivot if(arr[j] < pivot) { //Increment index of smaller element i++; swap(arr[i], arr[j]); } } swap(arr[i+1], arr[high]); return (i+1); } // The Quicksort function implementation void quickSort(int arr[],int low,int high) { // when low is less than high if(low < high) { // pi is the partition return index of pivot int pi = partition(arr,low,high); //Recursion Call //smaller element than pivot goes left and //higher element goes right quickSort(arr, low, pi-1); quickSort(arr, pi+1, high); } }
Thank you so much for these animations!!
Glad you like them!
It's so cool to see the algorithm in action 🎬 with 🎶
Can you post the code?
Find it in the pinned comment.
Can you do bucket, radix
Yeah, I'll try to do it soon.
continue doing the hard work one day you will get the result back.
Yess! tysm🤍
Nice video bro :)
Thnx man ; )
Man, thank you, you saved me
Glad, I could help ☺️
How do you create this video? Thank u.
Splendid Work
Thank you so much 😀
Code snippet: void merge(vector<int>&arr,int l,int mid,int r){ int leftLength=mid-l+1; int rightLength=r-mid; vector<int> leftSubArray(leftLength),rightSubArray(rightLength); int j=0; for(int i=l;i<=mid;i++) leftSubArray[j++]=arr[i]; j=0; for(int i=mid+1;i<=r;i++) rightSubArray[j++]=arr[i]; int leftInd=0,rightInd=0,ind=l; while(leftInd<leftLength && rightInd<rightLength){ if(leftSubArray[leftInd]<=rightSubArray[rightInd]){ arr[ind]=leftSubArray[leftInd]; ind++; leftInd++; } else{ arr[ind]=rightSubArray[rightInd]; ind++; rightInd++; } } while(leftInd<leftLength){ arr[ind++]=leftSubArray[leftInd++]; } while(rightInd<rightLength){ arr[ind++]=rightSubArray[rightInd++]; } } void mergeSort(vector<int>&arr,int l, int r){ if(l>=r){ return; } int mid=l+(r-l)/2; mergeSort(arr,l,mid); mergeSort(arr,mid+1,r); merge(arr,l,mid,r); }