CBSE Class 11 Computer Science Sorting Notes

Download CBSE Class 11 Computer Science Sorting Notes in PDF format. All Revision notes for Class 11 Computer Science have been designed as per the latest syllabus and updated chapters given in your textbook for Computer Science in Class 11. Our teachers have designed these concept notes for the benefit of Class 11 students. You should use these chapter wise notes for revision on daily basis. These study notes can also be used for learning each chapter and its important and difficult topics or revision just before your exams to help you get better scores in upcoming examinations, You can also use Printable notes for Class 11 Computer Science for faster revision of difficult topics and get higher rank. After reading these notes also refer to MCQ questions for Class 11 Computer Science given on studiestoday

Revision Notes for Class 11 Computer Science Sorting

Class 11 Computer Science students should refer to the following concepts and notes for Sorting in Class 11. These exam notes for Class 11 Computer Science will be very useful for upcoming class tests and examinations and help you to score good marks

Sorting Notes Class 11 Computer Science

10.1 DEFINITION:
To arrange the elements in ascending or descending order.
In this chapter we shall discuss two sorting techniques:

Bubble Sort

Insertion Sort

1. BUBBLE SORT: Bubble sort is a simple sorting algorithm. It is based on comparisons, in which each element is compared to its adjacent element and the elements are swapped if they are not in proper order.

CBSE-Class-11-Computer-Science-Sorting-Notes-1

PROGRAM:
L=eval(input(“Enter the elements:”))
n=len(L)
for p in range(0,n-1):
for i in range(0,n-1):
if L[i]>L[i+1]:
L[i], L[i+1] = L[i+1],L[i]
print(“The sorted list is : “, L)

OUTPUT:
Enter the elements:[60, 24, 8, 90, 45, 87, 12, 77]
The sorted list is : [8, 12, 24, 45, 60, 77, 87, 90]

Calculating Number of Operations (Bubble sort):

CBSE-Class-11-Computer-Science-Sorting-Notes-2

2. INSERTION SORT: Sorts the elements by shifting them one by one and inserting the element at right position.

CBSE-Class-11-Computer-Science-Sorting-Notes-3

PROGRAM:
L=eval(input(“Enter the elements: “))
n=len(L)
for j in range(1,n):
temp=L[j]
prev=j-1
while prev>=0 and L[prev]>temp: # comparison the elements
L[prev+1]=L[prev] # shift the element forward
prev=prev-1
L[prev+1]=temp #inserting the element at proper position
print(“The sorted list is :”,L)

OUTPUT:
Enter the elements: [45, 11, 78, 2, 56, 34, 90, 19]
The sorted list is : [2, 11, 19, 34, 45, 56, 78, 90]

Calculating Number of Operations (Insertion Sort):

CBSE-Class-11-Computer-Science-Sorting-Notes-4

10.2 How insertion sort is better than bubble sort?

CBSE-Class-11-Computer-Science-Sorting-Notes-5

CBSE Class 11 Computer Science Sorting Notes

We hope you liked the above notes for topic Sorting which has been designed as per the latest syllabus for Class 11 Computer Science released by CBSE. Students of Class 11 should download and practice the above notes for Class 11 Computer Science regularly. All revision notes have been designed for Computer Science by referring to the most important topics which the students should learn to get better marks in examinations. Our team of expert teachers have referred to the NCERT book for Class 11 Computer Science to design the Computer Science Class 11 notes. After reading the notes which have been developed as per the latest books also refer to the NCERT solutions for Class 11 Computer Science provided by our teachers. We have also provided a lot of MCQ questions for Class 11 Computer Science in the notes so that you can learn the concepts and also solve questions relating to the topics. We have also provided a lot of Worksheets for Class 11 Computer Science which you can use to further make yourself stronger in Computer Science.

Where can I download latest CBSE Class 11 Computer Science Sorting notes

You can download notes for Class 11 Computer Science Sorting for latest academic session from StudiesToday.com

Are the revision notes available for Sorting Class 11 Computer Science for the latest CBSE academic session

Yes, the notes issued for Class 11 Computer Science Sorting have been made available here for latest CBSE session

Is there any charge for the Class 11 Computer Science Sorting notes

There is no charge for the notes for CBSE Class 11 Computer Science Sorting, you can download everything free of charge

Which is the best online platform to find notes for Sorting Class 11 Computer Science

www.studiestoday.com is the best website from which you can download latest notes for Sorting Computer Science Class 11

Where can I find topic-wise notes for Class 11 Computer Science Sorting

Come to StudiesToday.com to get best quality topic wise notes for Class 11 Computer Science Sorting