Computer Science
Study Material For BSc(CS) students.
Home
B.Sc.(CS)
»
F.Y.B.Sc(CS)
»
Problem Solving using Computer and ‘C’ Programming
S.Y.B.Sc(CS)
»
Data Structures and Algorithms I
»
Notes
Lab Assignments
Data Structures and Algorithms II
»
Notes
Lab Assignments
T.Y.B.Sc(CS)
»
Operating System I
»
Notes
Lab Assignments
Operating System II
»
Notes
Lab Assignments
M.Sc.(CA)
»
F.Y.M.Sc(CA)
»
Operating System
»
Notes
S.Y.M.ScCA)
»
Python Programming
»
Notes
Lab Assignments
Downloads
»
Syllabus
MCQs
Practice Tests
»
OS
Sunday, 6 June 2021
DS-(I) Assignment 2: Sorting Algorithms – Bubble Sort, Insertion Sort, Selection Sort
June 06, 2021
DS LAB (I)
No comments
Set A.
a) Sort a random array of n integers (accept the value of n from user) in ascending order by using bubble sort algorithm.
b) Sort a random array of n integers (create a random array of n integers) in ascending order by using insertion sort algorithm.
c) Sort a random array of n integers (accept the value of n from user) in ascending order by using selection sort algorithm.
Set B.
a) Read the data from the file “employee.txt” and sort on age using
Bubble sort
Insertion sort
Selection sort
b) Read the data from the file “employee.txt” and sort on names in alphabetical order (use strcmp) using
Bubble sort
Insertion sort
Selection sort
Email This
BlogThis!
Share to X
Share to Facebook
Newer Post
Older Post
Home
0 Comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
Popular
Tags
Blog Archives
Followers
ABOUT
Rahul Sonawane
Nashik, Maharashtra, India
Qualification: M.Tech (IMCA), NET, SET
View my complete profile
Popular Posts
Python Programming Laboratory
Savitribai Phule Pune University, M.Sc. (Computer Application) (Semester-III) Practical Examination Solved Slips. M.Sc. (Computer Applica...
OS-(I) Assignment 3: CPU Scheduling Algorithms
Set A. (1)Write the program to simulate FCFS CPU-scheduling. The arrival time and first CPU- burst for different n number of processes shou...
Powered by
Blogger
.
Wikipedia
Search results
Blog Archive
March
(1)
January
(1)
January
(5)
June
(13)
April
(3)
March
(2)
February
(1)
November
(1)
October
(3)
0 Comments:
Post a Comment