forked from pearcej/cppds
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue pearcej#587 - Missing Matching section in cppds2, chapter 6.
- Loading branch information
1 parent
f69c1a7
commit 725176b
Showing
3 changed files
with
117 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<section> | ||
<title>Matching</title> | ||
<exercise label="matching_searchhash"> | ||
<statement><p>Drag the word on the left to its corresponding definition.</p></statement> | ||
<feedback><p>Review classes and their properties.</p></feedback> | ||
<matches> | ||
<match order="1"><premise>binary search</premise><response>One repeatedly divides a sorted data structure in half and determines if the item is in one half of it until the item is found or deemed not in the data.</response></match> | ||
<match order="2"><premise>chaining</premise><response>Collision resolution method, in which each slot in a hash table holds a reference to a collection of items.</response></match> | ||
<match order="3"><premise>collision</premise><response>Having two or more items sharing the same slot in a hash table.</response></match> | ||
<match order="4"><premise>collision resolution</premise><response>Systematic method for solving hash table collisions.</response></match> | ||
<match order="5"><premise>clustering</premise><response>Items being mapped in a hash table near each other resulting in items with collisions being put together.</response></match> | ||
<match order="6"><premise>folding method</premise><response>Constructing a hash function by dividing the item into equally sized pieces, adding the pieces together to get a hash value, dividing by the size of the hash table, and the remainder becomes the slot for that item.</response></match> | ||
<match order="7"><premise>hashing</premise><response>Creating a value for an input that can be used to find the input by searching for the value.</response></match> | ||
<match order="8"><premise>hash function</premise><response>Mapping between an item and its slot in a hash table.</response></match> | ||
<match order="9"><premise>linear probing</premise><response>Open addressing technique in which each slot is visited one at a time systematically.</response></match> | ||
<match order="10"><premise>load factor</premise><response>It's the number of items in a hash table divided by the size of the table.</response></match> | ||
<match order="11"><premise>map</premise><response>Associate data type that stores key-data pairs.</response></match> | ||
<match order="12"><premise>mid-square method</premise><response>Method for constructing a hash function by squaring the item and then using some portion of the result.</response></match> | ||
<match order="13"><premise>open addressing</premise><response>Collision resolution that tries to find the next open slot/address in the hash table.</response></match> | ||
<match order="14"><premise>perfect hash function</premise><response>Hash function that maps each item to a unique hash slot.</response></match> | ||
<match order="15"><premise>quadratic probing</premise><response>Variation of linear probing in which rehashing is done using successive squared values.</response></match> | ||
<match order="16"><premise>rehashing</premise><response>Putting an item into a hash table after a collision.</response></match> | ||
<match order="17"><premise>searching</premise><response>Algorithmic process of finding a particular item in a collection of items.</response></match> | ||
<match order="18"><premise>sequential search</premise><response>Search method in which one follows the underlying ordering of items in a collection of data to find a specific item.</response></match> | ||
<match order="19"><premise>slot</premise><response>Position in a hash table.</response></match> | ||
</matches> | ||
</exercise> | ||
|
||
</section> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters