Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Linked lists are not suitable for implementin... Start Learning for Free
Linked lists are not suitable for implementing
  • a)
    insertion sort
  • b)
    Binary search
  • c)
    Radix sort .
  • d)
    Polynomial manipulation
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
Linked lists are not suitable for implementinga)insertion sortb)Binary...
In case of using link list, one cannot randomly access the data or only serial data access is there. But, in case of binary search one needs to jump randomly either to first half or other half, which is not possible with linked list.
View all questions of this test
Most Upvoted Answer
Linked lists are not suitable for implementinga)insertion sortb)Binary...
Linked lists are not suitable for implementing Binary search

Linked List

A linked list is a data structure that consists of a sequence of nodes. Each node has two parts, i.e., data and a pointer that points to the next node in the sequence. The first node of the list is called the head, and the last node is called the tail. The tail node points to null, indicating the end of the list.

Binary Search

Binary search is an algorithm used to search for an element in a sorted array. The idea behind binary search is to repeatedly divide the search interval in half until the target element is found. If the target element is smaller than the middle element, then the search is continued in the left subarray; otherwise, it is continued in the right subarray.

Why Linked Lists are not suitable for implementing Binary Search?

1. Random Access

Binary search requires random access to the elements in the array. This means that we should be able to access any element in the array in constant time. However, in a linked list, we can only access the elements in a sequential manner. This means that we have to traverse the list from the beginning to reach the middle element, which takes linear time. Therefore, linked lists are not suitable for implementing binary search.

2. Time Complexity

The time complexity of binary search is O(log n), where n is the number of elements in the array. However, the time complexity of searching an element in a linked list is O(n). This is because we have to traverse the list from the beginning to find the target element. Therefore, linked lists are not efficient for implementing binary search.

Conclusion

Linked lists are not suitable for implementing binary search because they do not support random access to the elements, and the time complexity of searching an element is linear. Binary search requires constant time access to the elements and logarithmic time complexity, which is not possible with linked lists.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Linked lists are not suitable for implementinga)insertion sortb)Binary searchc)Radix sort .d)Polynomial manipulationCorrect answer is option 'B'. Can you explain this answer?
Question Description
Linked lists are not suitable for implementinga)insertion sortb)Binary searchc)Radix sort .d)Polynomial manipulationCorrect answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Linked lists are not suitable for implementinga)insertion sortb)Binary searchc)Radix sort .d)Polynomial manipulationCorrect answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Linked lists are not suitable for implementinga)insertion sortb)Binary searchc)Radix sort .d)Polynomial manipulationCorrect answer is option 'B'. Can you explain this answer?.
Solutions for Linked lists are not suitable for implementinga)insertion sortb)Binary searchc)Radix sort .d)Polynomial manipulationCorrect answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Linked lists are not suitable for implementinga)insertion sortb)Binary searchc)Radix sort .d)Polynomial manipulationCorrect answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Linked lists are not suitable for implementinga)insertion sortb)Binary searchc)Radix sort .d)Polynomial manipulationCorrect answer is option 'B'. Can you explain this answer?, a detailed solution for Linked lists are not suitable for implementinga)insertion sortb)Binary searchc)Radix sort .d)Polynomial manipulationCorrect answer is option 'B'. Can you explain this answer? has been provided alongside types of Linked lists are not suitable for implementinga)insertion sortb)Binary searchc)Radix sort .d)Polynomial manipulationCorrect answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Linked lists are not suitable for implementinga)insertion sortb)Binary searchc)Radix sort .d)Polynomial manipulationCorrect answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev