Skip to content

UMK-Data-Science/week-5-simple-sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial Week 6 - Simple Sorting Technique

Please answer all questions and read carefully :octocat:

Intructions

This tutorial consists with 3 questions. Try to complete this tutorial by commit your changes and read the questions carefully 😄

Exercise 1

Given unsorted array UA[]={5,1,4,2,8}, write a C program to sort a list of elements using Bubble Sort Algorithm Next, calculate number of passes and comparisons required from the program

Input
UA[]={5,1,4,2,8}
Expected Output
Sorted Element using Bubble Sort Technique is 1,2,4,5,8

Exercise 2

Given unsorted array UA[]={5,1,4,2,8}, write a C program to sort a list of elements using Selection Sort Algorithm

Input
UA[]={5,1,4,2,8}
Expected Output
Sorted Element using Selection Sort Technique is 1,2,4,5,8

Exercise 3

Given unsorted array UA[]={5,1,4,2,8}, write a C program to sort a list of elements using Insertion Sort Algorithm

Input
UA[]={5,1,4,2,8}
Expected Output
Sorted Element using Insertion Sort Technique is 1,2,4,5,8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages