Filename | Searching |
Permission | rw-r--r-- |
Author | pramana |
Date and Time | 1:55 am |
Label | Alpro Reflection |
Action |
Search data is often also called look-up table or information storage and retrieval, is a process to gather some information on the computer and then search for the reminder re the necessary information.
Any one method in searching
*sequential Searching
The simplest method of a number of search methods is the sequential search method (sequential searching). This method can be briefly described as follows:
Of the known elements, the data source than the one by one until the data is found or not found.
Sequential Algorithm Searching:
1. Read the set of known data, such as a set A with N elements.
2. Read data is searched, eg, Data
3. There = False
4. For I = 1 to N 5 step process
5. If Data = A [I] then
There = True; Position = I; I = N
6. If There = False Then
N = N +1; A [i] = data
7. completed
0 comments:
Post a Comment