Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
610 views
in Information Technology by (120k points)
closed by
In insertion sort, the average number of comparisons required to place the 7^th element into its correct position is ____

(a) 9

(b) 4

(c) 7

(d) 14

1 Answer

0 votes
by (121k points)
selected by
 
Best answer
Right option is (b) 4

Best explanation: On average (k + 1) / 2 comparisons are required to place the k^th element into its correct position. Therefore, average number of comparisons required for 7th element = (7 + 1)/2 = 4.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...