Black and White Dark Minimalist Food Photography Talking Presentation

Published on Slideshow
Static slideshow
Download PDF version
Download PDF version
Embed video
Share video
Ask about this video

Scene 1 (0s)

[Audio] Counting Sort Algorithm. Counting Sort Algorithm.

Scene 2 (6s)

[Audio] CREATE A COUNT ARRAY TO STORE THE COUNT OF EACH UNIQUE OBJECT. MODIFY COUNT ARRAY BY ADDING THE PREVIOUS NUMBER. CREATE OUTPUT ARRAY BY DECRESE COUNT ARRAY. COUNTING SORT 02.

Scene 3 (25s)

[Audio] The input to counting sort consists of a collection of n items, each of which has a non negative integer key whose maximum value is at most k The input to be sorted is assumed to be more simply a sequence of integers itself, but this simplification does not accommodate many applications of counting sort. For instance, when used as a subroutine in radix sort, the keys for each call to counting sort are individual digits of larger item keys; it would not suffice to return only a sorted list of the key digits, separated from the items. • The output is an array of the items, in order by their keys. Because of the application to radix sorting, it is important for counting sort to be a stable sort: if two items have the same key as each other, they should have the same relative position in the output as they did in the input INPUT AND OUTPUT.

Scene 4 (1m 23s)

[Audio] Let the Array in range 0 to 5 input 1 4 3 2 3 5 2 Create an array that will hold the count of each number, with index ranges from 0 to 5 [0] [1] [2] [3] [4] [5] count 0 1 2 2 1 1.

Scene 5 (1m 50s)

[Audio] Modify count array by adding the previous number: input 1 4 3 2 3 5 2 [0] [1] [2] [3] [4] [5] sum count 0 1 3 5 6 7.

Scene 6 (2m 12s)

[Audio] Output each object from the input sequence followed by decreasing count by 1: input 1 4 3 2 3 5 2 [0] [1] [2] [3] [4] [5] sum count 0 1 3 5 6 7 [1] [2] [3] [4] [5] [6] [7] output.

Scene 7 (2m 43s)

[Audio] Output each object from the input sequence followed by decreasing count by 1: input 1 4 3 2 3 5 2 [0] [1] [2] [3] [4] [5] sum count 0 1 3 5 1 1 [1] [2] [3] [4] [5] [6] [7] output 1.

Scene 8 (3m 13s)

[Audio] input 1 4 3 2 3 5 2 [0] [1] [2] [3] [4] [5] sum count 0 0 3 5 6 7 [1] [2] [3] [4] [5] [6] [7] output 1 4.

Scene 9 (3m 38s)

[Audio] input 1 4 3 2 3 5 2 [0] [1] [2] [3] [4] [5] sum count 0 0 3 5 5 7 [1] [2] [3] [4] [5] [6] [7] output 1 3 4.