4
Bubble Sorting ........................................ i = 0 ;j = 0 j = 0 , . . . , 6 5 j = 2 3 1 9 8 2 4 7 j = 1 j = 3 j = 4 j = 5 j = 6 5 3 1 9 3 3 3 3 3 1 5 9 1 1 1 1 8 8 8 5 9 2 2 2 4 4 4 4 5 5 5 9 8 2 8 2 9 4 8 2 9 4 7 7 7 7 7 7 i = 1 ;j = 0 j = 2 j = 3 j = 4 j = 5 j = 1 , . . . , 6 7 7 7 7 7 7 1 3 3 1 1 1 1 1 3 3 3 3 5 5 5 5 5 5 8 8 8 8 8 2 2 2 2 4 4 4 4 4 2 4 8 2 i = 2 ;j = 0 j = 1 j = 2 j = 3 j = 4 7 4 2 5 1 3 7 7 7 7 4 4 4 2 2 5 5 1 1 1 1 3 3 3 3 2 2 5 5 4 j = 1 , . . . , 5 i = 3 ;j = 0,1,2,3 i = 4 ;j = 0,1,2 i = 5 ;j = 0,1 i = 6 ;j = 0 ........................................ 1 2 3 4 5 7 8 9 8 9 9 j = 1

Bubble Sorting - GitHub Pages · 2021. 2. 17. · see of sum S curve. esssa;s obo +1m // T -fLUíeyv soLJLÐ a- 00 can , R +bžx . fie sum of n LA—2- y. fie of /Cne. Y. — Yt so

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Bubble Sorting - GitHub Pages · 2021. 2. 17. · see of sum S curve. esssa;s obo +1m // T -fLUíeyv soLJLÐ a- 00 can , R +bžx . fie sum of n LA—2- y. fie of /Cne. Y. — Yt so

Bubble Sorting

........................................

i=0 ; j=0

j=0,

...,

6

5

j=2

3 1 9 8 2 4 7

j=1

j=3

j=4

j=5

j=6

53 1 9

3

3

3

3

3

1 5 9

1

1

1

1

8

8

85 9

2

22

4

44

45

5

5

98 2

8 2 94

8 2 94

7

7

7

7

7

7

i=1 ; j=0

j=2

j=3

j=4

j=5

j=1,

...,

6

7

7

7

7

7

7

1

3

3

1

1

1

1

1

3

3

3

3

5

5

5

5

5

5

8

8

8

8

8

2

2

2

2

4

4

4

4

4

2 4 8

2

i=2 ; j=0

j=1

j=2

j=3j=4

74251 3

7

7

7

7

4

4

4

2

2

5

5

1

1

1

1

3

3

3

3

2

2

5

54

j=1,

...,

5

i=3 ; j=0,1,2,3

i=4 ; j=0,1,2

i=5 ; j=0,1

i=6 ; j=0........................................

1 2 3 4 5 7 8 9

8 9

9

j=1

Page 2: Bubble Sorting - GitHub Pages · 2021. 2. 17. · see of sum S curve. esssa;s obo +1m // T -fLUíeyv soLJLÐ a- 00 can , R +bžx . fie sum of n LA—2- y. fie of /Cne. Y. — Yt so

Insertion Sorting

i=1 ; j=053 1 9 8 2 4 7

531 931 5

8

5

2

2

4

4

4

7

7

7

7

i=2 ; j=−1

i=3 ; j=2

i=4 ; j=2

i=5 ; j=0

i=6 ; j=2

i=7 ; j=4

1

1

11

2

2

2

3

3

3

3

9

5

44

8

8 9 2

8 9 4

85 9 7

5 7 8 9

Page 3: Bubble Sorting - GitHub Pages · 2021. 2. 17. · see of sum S curve. esssa;s obo +1m // T -fLUíeyv soLJLÐ a- 00 can , R +bžx . fie sum of n LA—2- y. fie of /Cne. Y. — Yt so

Scanned by CamScanner

Page 4: Bubble Sorting - GitHub Pages · 2021. 2. 17. · see of sum S curve. esssa;s obo +1m // T -fLUíeyv soLJLÐ a- 00 can , R +bžx . fie sum of n LA—2- y. fie of /Cne. Y. — Yt so

Scanned by CamScanner