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
469 views
in Computer by (43.6k points)
closed by

Write a short note on searching?

Or

Differentiate between sequential and binary search.

1 Answer

+1 vote
by (43.1k points)
selected by
 
Best answer

Searching: Searching means finding an element from an array. It refers to the process of finding the location of a given data element from an array. For example: If you want to work on your computer notebook, you have to search for it for yourself. You can do searching by two methods:

1. Sequential Search: This search is also known as linear search because in this method to search an element from data source one has to compare particular data item with the first element than the second element and so on until the search is completed. Because of this sequential approach, it is known as sequential search. In this, if the element is found in the middle, search process terminates.

2. Binary Search: In this method of searching, only sorted data can be used, unsorted data cannot be used to apply this type of search. To do searching in Binary method, the sorted data is divided into two parts and the particular element is compared with the middle element. If found greater, the first and that middle element is divided into two parts and their middle element is compared. And if found smaller, the middle and the last element is divided into two parts and their middle element is compared. This process goes on until the search is completed. This method of search is quick and saves time. It is also known as Random search.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

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

...