Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

Search algs

1.3.1

QuestionAnswer
Binary search Efficient for finding an item in sorted data set Starts at middle in the list and repeatedly divides it in half Requires the list to be in order Efficient for large data sets Quickly reduces large data sets as it discards the other half of the list
Binary search in English 1Start at middle 2If middle = to be found, search over 3If to be found < middle item, discard all to right 4If to be found > middle item, discard all to left 5Repeat from 2 till item found or no items left 6If item found output data, else “Not found”
Binary search in pseudocode
Linear search Finds item in sorted/unsorted list Start at first item + compare each item to one being searched for, until found Fast for small set, slow for large, ideal for finding items in small sets Easiest searching alg to implement, but usually most inefficient
Linear search in English 1. Start at first item 2. If item in list is to be found, search over 3. If not, move to next item 4. Repeat from 2 until item is found or there are no more items in the list 5. If item found, output its data. If it has not, output “Not found”
Linear search in pseudocode index = 0 found = false While found == False and index < items.Length If items[index] == item_to_find then found = True Else index = index + 1 End If End while
Created by: FlashCardFun!
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards