)B ubble sort:- 5919 12 122874231| 4 5 19 Iteration 1

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

i need 

in words ...not handwritten, please

rewrite it
a)B ubble sort:-
チ。
い2|28 7|42131」4
5 19
Iteration 1
り」2> Swaps U3い)
1 129 25 42 314|s1.19
i) 12>9, swaps (123 )
ロ2 5回
12 9 12 287 4231415 115
12<28 so, Not swaps.'
よりた、 r
ii) 28 >7, swaps (2837)
| 11 9| 127|23 42 31 45 15
) 28く42, so Not'swaps
り41>31,swaps (42331)
| 111121 2941|42 4|5|15
283142 4519
vi) 42>4, swaps(4234).
11 ) 12 |7| 23|31| 4425 15
N) 42>5,5wpsし4338)
119 | 12 | 28 391413142/15
*)41>1ウ,(wafs (42,1)
IT.9 127 128 31451942
Transcribed Image Text:a)B ubble sort:- チ。 い2|28 7|42131」4 5 19 Iteration 1 り」2> Swaps U3い) 1 129 25 42 314|s1.19 i) 12>9, swaps (123 ) ロ2 5回 12 9 12 287 4231415 115 12<28 so, Not swaps.' よりた、 r ii) 28 >7, swaps (2837) | 11 9| 127|23 42 31 45 15 ) 28く42, so Not'swaps り41>31,swaps (42331) | 111121 2941|42 4|5|15 283142 4519 vi) 42>4, swaps(4234). 11 ) 12 |7| 23|31| 4425 15 N) 42>5,5wpsし4338) 119 | 12 | 28 391413142/15 *)41>1ウ,(wafs (42,1) IT.9 127 128 31451942
Selection Sort
1211
928 74231 4.5 19
1 2
789
3 45
Iteration 1:-
mininden-o
ベく
<'arr [min:1mdem]
min-indena 1
) an [2].< am [min-ind@n]
min-inder -2
!) amm [3] $
arm [2]
No Chang e
mE4]<. amm [?]
V) arr Fs] amm [4]
NO Change
vi) iarr [c] 4 amm [4].
No Chang e
Vii) arr [1) < am I4]
mim-inden= 7
Vi;) earrt8] k anm [4]
No Change
arn o]¢ arm ), No chanoe
Transcribed Image Text:Selection Sort 1211 928 74231 4.5 19 1 2 789 3 45 Iteration 1:- mininden-o ベく <'arr [min:1mdem] min-indena 1 ) an [2].< am [min-ind@n] min-inder -2 !) amm [3] $ arm [2] No Chang e mE4]<. amm [?] V) arr Fs] amm [4] NO Change vi) iarr [c] 4 amm [4]. No Chang e Vii) arr [1) < am I4] mim-inden= 7 Vi;) earrt8] k anm [4] No Change arn o]¢ arm ), No chanoe
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY