Searching A Node In Linked List Using Divide And Conquer Approach
Keywords:
Divide and conquer, Binary Search, middle element, single Step pointer, double Step pointerAbstract
The general idea of this paper is to implement binary search algorithm based on divide and conquer approach on the linked list. To implement the binary search algorithm the nodes of the linked list must be sorted in any order. In case of arrays it is very easy to find out the middle element because of the static and contiguous arrangement of its elements but because of the dynamic nature and random allocation of the nodes it is time consuming task to find out the middle node in sorted linked list. In this paper we have implemented two distinct pointers named, single Step pointer and double Step pointer to find out the middle node.
References
- http://en.wikipedia.org/wiki/Binary_search_algorithm
- http://www.getappninja.com/blog/implementing- a-binary-search-in-ios
Downloads
Published
Issue
Section
License
Copyright (c) IJSRST

This work is licensed under a Creative Commons Attribution 4.0 International License.