Advertisement
akosiraff

Binary Search C#

Jan 21st, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. Download: http://solutionzip.com/downloads/binary-search-c/
  2. Design, implement, test, and debug a C# Program to read the text file into an array and sort it. Display the unsorted list in some way on the form. Be sure to use a selection sort to sort the data, utilizing the algorithm described in this week’s reading. After sorting, display the sorted list in some way on the form for the user to view. The GUI should have a text field into which the user can enter a search term. The program will perform a binary search, utilizing the algorithm described in this week’s reading, to determine if the term is found in the array that was read from the file. The program will let the user know whether or not the search term was found and how many comparisons were made during the search. The number of comparisons is defined as follows. When you are executing the binary search, you will be comparing the search term with values in the array via a loop. Each time within that loop that you do an actual comparison of the search term to an item in the array counts as one comparison. You will need to display the total number of comparisons done to complete the binary search. The type of application to be developed is a Windows Forms application.
  3. Download: http://solutionzip.com/downloads/binary-search-c/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement