Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between a binary search and a
sequential search?

Answers were Sorted based on User's Feedback



What is the difference between a binary search and a sequential search?..

Answer / muhammad abdul aleem

Binary Search | Sequential Search
1.Search All | 1.Search
2.Data should be in sorted | 2.Data can be in any order
order |
3. Only 1 When condition | 3. Any no. of when conditions
can be used | can be used.
4. Only '=' relational | 4. Any relational operator.
operator is used |
5. Access is faster | 5. Access is slow
6.Used for only single | 6. used for single/Multi
dimentional array | dimentional array.

Is This Answer Correct ?    124 Yes 19 No

What is the difference between a binary search and a sequential search?..

Answer / guest

Binary search is search all. sequential search is the
linear serach.

Example for Search all: File contains 100 records. supose
if u r searching for 75 th record, first entire file
divided into two parts, it will check , whether record is
in first half or second.. like that file ds divded into
diffrent parts

sequential serach: if the file contains 100 records, spose
if u r looking for 75th record, it will start serach from
first record...

Is This Answer Correct ?    98 Yes 12 No

What is the difference between a binary search and a sequential search?..

Answer / shyamendra

Binary search is attampt on file which is in sorted
order.Search All is the key word.Only one 'WHEN'
& 'AND'.Only '=' is used.
While Linear search can be attempt on any
file.Any logical operation is possible.Multiple 'WHEN' are
possible.Index is set to 1 before starting searching.When
table size is small then only we use this.

Is This Answer Correct ?    40 Yes 14 No

What is the difference between a binary search and a sequential search?..

Answer / boxee

binary search is fast because
it check the element mid
is element is less
it set the beg
mid=(beg+end)/2;
if(value>a[mid])
{
beg=mid+1;
}
else
{
end=mid-1;
}

Is This Answer Correct ?    23 Yes 0 No

What is the difference between a binary search and a sequential search?..

Answer / muthu

binary search runs in O(logn) time whereas linear search
runs in O(n) times thus binary search has better
performance.

Is This Answer Correct ?    36 Yes 14 No

What is the difference between a binary search and a sequential search?..

Answer / sahil chawla

HI !!!!
I m Sahil Chawla


It is to be noted that in binary search MID=(start+end)/2
is to be found
but in linear search there is no such condition

Is This Answer Correct ?    18 Yes 7 No

What is the difference between a binary search and a sequential search?..

Answer / anupam

binary search is performed by calculating mid point whereas sequential search is performed by sorting all elements.prior is the faster.

Is This Answer Correct ?    2 Yes 9 No

What is the difference between a binary search and a sequential search?..

Answer / pratik gondaliya

with binary serch we can not get output faster because it is difficult to sort the character element.

with linear serch we can get output fastest.

example-: hello my name is pratik

Is This Answer Correct ?    6 Yes 20 No

What is the difference between a binary search and a sequential search?..

Answer / santhosh

santhosh kumar is a very good boy???

Is This Answer Correct ?    4 Yes 19 No

What is the difference between a binary search and a sequential search?..

Answer / a.r.rahman(music director

binary and sequensial search is bad.................

Is This Answer Correct ?    11 Yes 48 No

Post New Answer

More COBOL Interview Questions

What are the various section in data division and briefly explain them.

0 Answers  


What is an in line PERFORM? When would you use it? Anything else to say about it?

4 Answers  


Difference between array and sub-script ?

0 Answers   HCL,


01 a pic 9(3) value is 123 01 b pic 9(6) move a to b wht will be the value ? and 01 a pic x(6) value is abc 01 b pic x(3) move a to b wht will be the value ?

7 Answers   Patni,


I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.

1 Answers  


What is mean by maxcc

7 Answers   Syntel,


how would find total records in files using seqientional

1 Answers   HSBC,


A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.

1 Answers  


waht is inspect verb? where it can be in real time?

1 Answers   Patni,


If we use GO BACK instead of STOP RUN in cobol?

1 Answers   Temenos,


hi friends,can any one post the ibm mainframe inteqview questions for 1year exp candidate,for itc infotech interview?. have any body attended for this in the past?...

1 Answers   ITC Infotech,


What is the different between index and subscript?

3 Answers  


Categories