BubbleSort_fourthRound

Add to Favourites
Post to:

Description
continuation of the process to the fourth round.

Comments
Presentation Transcript Presentation Transcript

Fourth Round : Fourth Round In the fourth round the fourth element is compared with fifth element. Elements are interchanged if require. Here, the fourth element 3 is compared with the fifth element 5. Since 5 >3 , Hence elements 3 and 5 are interchanged. 25 , 20 , 15 , 3 , 5 [4th element is compared with 5th ] interchange 3 and 5 Array status : 25 , 20 , 15 , 5 , 3 [ Array Is Sorted ] Observation : Inside every round of sorting i.e. in ith round comparison of i th element begins from ( i+1 ) th element . [1st round : 1st element with 2nd , 3rd , 4th, and 5th elements ] [2nd round : 2nd element with 3rd , 4th , and 5th elements ] [ 3rd round : 3rd element with 4th , and 5th elements ] and in the [4th round : 4th element with 5th element ]

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
5 Members Recommend
46 Followers

Your Facebook Friends on WizIQ

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect