Radix sort considers the structure of keys and sorts based on comparing bits in the same position. Bucket sort is used to stably sort based on individual bits, with time complexity O(bn) for b-bit keys. While comparison-based sorting requires Ω(n log n) time, radix sort circumvents this lower bound by exploiting key structure rather than just comparisons.
This is a seminar presentation on "SORTING" for Semester 2 exam at St. Xavier's College.The power point presenation deals with the requirement of sorting in our life,types of sorting techniques,code for implementing them,the time and space complexity of different sorting algorithms,the applications of sorting,its use in the industry and its future scope.The slide show contains .gif files which can't be seen here.For more details or any queries send me a mail at agmajumder@gmail.com
It is a presentation on some Searching and Sorting Techniques for Computer Science.
It consists of the following techniques:
Sequential Search
Binary Search
Selection Sort
Bubble Sort
Insertion Sort
Big O notation is used in Computer Science to describe the performance or complexity of an algorithm. Big O specifically describes the worst-case scenario, and can be used to describe the execution time required or the space used (e.g. in memory or on disk) by an algorithm.
For further information
https://github.com/ashim888/dataStructureAndAlgorithm
References:
https://www.khanacademy.org/computing/computer-science/algorithms/asymptotic-notation/a/asymptotic-notation
http://web.mit.edu/16.070/www/lecture/big_o.pdf
https://rob-bell.net/2009/06/a-beginners-guide-to-big-o-notation/
https://justin.abrah.ms/computer-science/big-o-notation-explained.html
This is a seminar presentation on "SORTING" for Semester 2 exam at St. Xavier's College.The power point presenation deals with the requirement of sorting in our life,types of sorting techniques,code for implementing them,the time and space complexity of different sorting algorithms,the applications of sorting,its use in the industry and its future scope.The slide show contains .gif files which can't be seen here.For more details or any queries send me a mail at agmajumder@gmail.com
It is a presentation on some Searching and Sorting Techniques for Computer Science.
It consists of the following techniques:
Sequential Search
Binary Search
Selection Sort
Bubble Sort
Insertion Sort
Big O notation is used in Computer Science to describe the performance or complexity of an algorithm. Big O specifically describes the worst-case scenario, and can be used to describe the execution time required or the space used (e.g. in memory or on disk) by an algorithm.
For further information
https://github.com/ashim888/dataStructureAndAlgorithm
References:
https://www.khanacademy.org/computing/computer-science/algorithms/asymptotic-notation/a/asymptotic-notation
http://web.mit.edu/16.070/www/lecture/big_o.pdf
https://rob-bell.net/2009/06/a-beginners-guide-to-big-o-notation/
https://justin.abrah.ms/computer-science/big-o-notation-explained.html
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Ethnobotany and Ethnopharmacology:
Ethnobotany in herbal drug evaluation,
Impact of Ethnobotany in traditional medicine,
New development in herbals,
Bio-prospecting tools for drug discovery,
Role of Ethnopharmacology in drug evaluation,
Reverse Pharmacology.
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
The Indian economy is classified into different sectors to simplify the analysis and understanding of economic activities. For Class 10, it's essential to grasp the sectors of the Indian economy, understand their characteristics, and recognize their importance. This guide will provide detailed notes on the Sectors of the Indian Economy Class 10, using specific long-tail keywords to enhance comprehension.
For more information, visit-www.vavaclasses.com
Sectors of the Indian Economy - Class 10 Study Notes pdf
Lec23
1. More Sorting
radix sort
bucket sort
in-place sorting
how fast can we sort?
1
2. Radix Sort
Unlike other sorting methods, radix sort considers the
structure of the keys
Assume keys are represented in a base M number
system (M = radix), i.e., if M = 2, the keys are
represented in binary
Sorting is done by comparing bits in the same position
Extension to keys that are alphanumeric strings
2
3. Radix Exchange Sort
Examine bits from left to right:
1. Sort array with respect to leftmost bit
2. Partition array
3.Recursion
recursively sort top subarray, ignoring leftmost bit
recursively sort bottom subarray, ignoring leftmost bit
Time to sort n b-bit numbers: O(b n)
3
4. Radix Exchange Sort
How do we do the sort from the previous page? Same idea as
partition in Quicksort.
repeat
scan top-down to find key starting with 1;
scan bottom-up to find key starting with 0
exchange keys;
until scan indices cross;
4
6. Radix Exchange Sort vs. Quicksort
Similarities
both partition array
both recursively sort sub-arrays
Differences
Method of partitioning
radix exchange divides array based on greater
than or less than 2b-1
quicksort partitions based on greater than or
less than some element of the array
Time complexity
Radix exchange O (bn)
Quicksort average case O (n log n)
6
7. Straight Radix Sort
Examines bits from right to left
for k := 0 to b-1
sort the array in a stable way,
looking only at bit k
Note order of these bits after sort.
7
8. What is “sort in a stable way”!!!
In a stable sort, the initial relative order of equal keys is
unchanged. For example, observe the first step of the sort
from the previous page:
Note that the relative order of those keys ending with 0
is unchanged, and the same is true for elements
ending in 1
8
9. The Algorithm is Correct (right?)
We show that any two keys are in the correct relative order
at the end of the algorithm
Given two keys, let k be the leftmost bit-position where
they differ
At step k the two keys are put in the correct relative
order
Because of stability, the successive steps do not
change the relative order of the two keys
9
12. Straight Radix Sort Time Complexity
for k = 0 to b - 1
sort the array in a stable way, looking only at bit k
Suppose we can perform the stable sort above in O(n)
time. The total time complexity would be
O(bn)
As you might have guessed, we can perform a stable
sort based on the keys’ kth digit in O(n) time.
The method, you ask? Why it’s Bucket Sort, of course.
12
13. Bucket Sort
BASICS:
n numbers
Each number {1, 2, 3, ...
m}
Stable
Time: O (n + m)
For example, m = 3 and our array
is:
(note that there are two “2”s and two “1”s)
First, we create M “buckets”
13
15. Bucket Sort
Now, pull the elements
from the buckets into the
array
At last, the sorted array
(sorted in a stable way):
15
16. In-Place Sorting
A sorting algorithm is said to be in-place if
it uses no auxiliary data structures (however, O(1)
auxiliary variables are allowed)
it updates the input sequence only by means of
operations replaceElement and swapElements
Which sorting algorithms seen can be made to
work in place?
16
18. How Fast Can We Sort?
How Fast Can We Sort?
Proposition: The running time of any
comparison-based algorithm for sorting an n-
element sequence S is (n log n).
Justification: The running time of a
comparison-based sorting algorithm must be
equal to or greater than the depth of the
decision tree T associated with this algorithm.
18
19. How Fast Can We Sort? (2)
Each internal node of T is associated with a
comparison that establishes the ordering of two
elements of S.
Each external node of T represents a distinct
permutation of the elements of S.
Hence T must have at least n! external nodes which
again implies T has a height of at least log(n!)
Since n! has at least n/2 terms that are greater than
or equal to n/2, we have: log(n!) ≥ (n/2) log(n/2)
Total Time Complexity: (n log n).
19