Results 1 to 3 of 3
  1. #1
    qaseh is offline Member
    Join Date
    Mar 2012
    Posts
    1
    Rep Power
    0

    Default sequential search and binary search

    please help me to resolve this question.I have tried to solve but there are many errors


    develop a program that performs simulation on comparison-based
    searching algorithms.the flow of the program is as follows:

    1.create an integer type array with maximum size 20.user should enter the values.
    2.select search key.
    3.perform searching using :
    a.sequential search
    b.binary search
    4.for each searching,shows the following results:
    a.status of searching (success @ fail)
    b.number of comparisons performed
    5.give the conclusion (which algorithm perform better base on no.of comparisons)

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: sequential search and binary search

    Please post your question once and only once (and read the FAQ). Duplicate question closed.
    Thread moved to "new to java" forum.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: sequential search and binary search

    Quote Originally Posted by qaseh View Post
    please help me to resolve this question.I have tried to solve but there are many errors


    develop a program that performs simulation on comparison-based
    searching algorithms.the flow of the program is as follows:

    1.create an integer type array with maximum size 20.user should enter the values.
    2.select search key.
    3.perform searching using :
    a.sequential search
    b.binary search
    4.for each searching,shows the following results:
    a.status of searching (success @ fail)
    b.number of comparisons performed
    5.give the conclusion (which algorithm perform better base on no.of comparisons)
    Next of all, please don't simply dump your assignment in the forum as it implies that you want someone to do it for you. If your attempt to solve this has lots of errors, then show your attempt and tell us the errors. Else, how will we know what you're doing wrong?

Similar Threads

  1. Binary Search
    By cengho in forum Java Applets
    Replies: 4
    Last Post: 12-24-2010, 10:26 AM
  2. Binary Search Help
    By Plissken in forum New To Java
    Replies: 2
    Last Post: 03-13-2010, 10:34 AM
  3. Binary search tree search method
    By chopo1980 in forum New To Java
    Replies: 2
    Last Post: 12-10-2009, 01:42 AM
  4. binary search
    By tranceluv in forum New To Java
    Replies: 10
    Last Post: 01-14-2008, 07:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •