Documentation for 62562abce3

This commit is contained in:
github-actions
2020-07-31 09:51:29 +00:00
parent 5eba000e6f
commit 930e001204
415 changed files with 18569 additions and 12110 deletions

View File

@@ -0,0 +1,677 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: double_hashing Namespace Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Algorithms_in_C++
&#160;<span id="projectnumber">1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('d0/d65/namespacedouble__hashing.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">double_hashing Namespace Reference<div class="ingroups"><a class="el" href="../../d4/d39/group__open__addressing.html">Open Addressing</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>An implementation of hash table using <a href="https://en.wikipedia.org/wiki/Double_hashing">double hashing</a> algorithm.
<a href="../../d0/d65/namespacedouble__hashing.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dde/structdouble__hashing_1_1_entry.html">Entry</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a4b68c58d0e039662991f8e220129efd9"><td class="memItemLeft" align="right" valign="top"><a id="a4b68c58d0e039662991f8e220129efd9"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>Entry</b> = struct <a class="el" href="../../d9/dde/structdouble__hashing_1_1_entry.html">Entry</a></td></tr>
<tr class="separator:a4b68c58d0e039662991f8e220129efd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ac2adfce49ac57f6dbd1778d2c1ce0d2b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b">putProber</a> (const <a class="el" href="../../d9/dde/structdouble__hashing_1_1_entry.html">Entry</a> &amp;entry, int key)</td></tr>
<tr class="separator:ac2adfce49ac57f6dbd1778d2c1ce0d2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29f543e2626bad58907661e1e45028a6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6">searchingProber</a> (const <a class="el" href="../../d9/dde/structdouble__hashing_1_1_entry.html">Entry</a> &amp;entry, int key)</td></tr>
<tr class="separator:a29f543e2626bad58907661e1e45028a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79a9c914a6c68275b3640303d7faad8a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/namespacedouble__hashing.html#a79a9c914a6c68275b3640303d7faad8a">add</a> (int key)</td></tr>
<tr class="separator:a79a9c914a6c68275b3640303d7faad8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d90726ed1de7b3d2ae261baed048003"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003">hashFxn</a> (int key)</td></tr>
<tr class="memdesc:a0d90726ed1de7b3d2ae261baed048003"><td class="mdescLeft">&#160;</td><td class="mdescRight">Hash a key. Uses the STL library's <code><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/hash.html">std::hash()</a></code> function. <a href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003">More...</a><br /></td></tr>
<tr class="separator:a0d90726ed1de7b3d2ae261baed048003"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33968a1178289ab61445dd4000df7082"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082">otherHashFxn</a> (int key)</td></tr>
<tr class="memdesc:a33968a1178289ab61445dd4000df7082"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used for second hash function. <a href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082">More...</a><br /></td></tr>
<tr class="separator:a33968a1178289ab61445dd4000df7082"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f8ff4fb018e1bb32d67d8a1885d3200"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200">doubleHash</a> (int key, bool searching)</td></tr>
<tr class="memdesc:a8f8ff4fb018e1bb32d67d8a1885d3200"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs double hashing to resolve collisions. <a href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200">More...</a><br /></td></tr>
<tr class="separator:a8f8ff4fb018e1bb32d67d8a1885d3200"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e901418c759627557eff359b8db38cd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd">display</a> ()</td></tr>
<tr class="separator:a1e901418c759627557eff359b8db38cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4981819aae8bc7e7beeaef02615e30d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/namespacedouble__hashing.html#af4981819aae8bc7e7beeaef02615e30d">rehash</a> ()</td></tr>
<tr class="separator:af4981819aae8bc7e7beeaef02615e30d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28083ecac6eb94b643281875c8665931"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/namespacedouble__hashing.html#a28083ecac6eb94b643281875c8665931">remove</a> (int key)</td></tr>
<tr class="separator:a28083ecac6eb94b643281875c8665931"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c652b2e467e5d250dfe3bed83b12560"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/namespacedouble__hashing.html#a9c652b2e467e5d250dfe3bed83b12560">addInfo</a> (int key)</td></tr>
<tr class="separator:a9c652b2e467e5d250dfe3bed83b12560"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d06e4598569526294f10104875f6824"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/namespacedouble__hashing.html#a5d06e4598569526294f10104875f6824">removalInfo</a> (int key)</td></tr>
<tr class="separator:a5d06e4598569526294f10104875f6824"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a77d33a0c49294b9ec22ad86eeff79585"><td class="memItemLeft" align="right" valign="top"><a id="a77d33a0c49294b9ec22ad86eeff79585"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>notPresent</b></td></tr>
<tr class="separator:a77d33a0c49294b9ec22ad86eeff79585"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e2ff0f9cfc7b54e60a6561f792d8b26"><td class="memItemLeft" align="right" valign="top"><a id="a0e2ff0f9cfc7b54e60a6561f792d8b26"></a>
<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; <a class="el" href="../../d9/dde/structdouble__hashing_1_1_entry.html">Entry</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>table</b></td></tr>
<tr class="separator:a0e2ff0f9cfc7b54e60a6561f792d8b26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60a52265027518b25655d730f960013a"><td class="memItemLeft" align="right" valign="top"><a id="a60a52265027518b25655d730f960013a"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>totalSize</b></td></tr>
<tr class="separator:a60a52265027518b25655d730f960013a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e9a7219d34e781e4e73d74a968b26c1"><td class="memItemLeft" align="right" valign="top"><a id="a4e9a7219d34e781e4e73d74a968b26c1"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>tomb</b> = -1</td></tr>
<tr class="separator:a4e9a7219d34e781e4e73d74a968b26c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f5323b52037218cf5ae888778b7f980"><td class="memItemLeft" align="right" valign="top"><a id="a5f5323b52037218cf5ae888778b7f980"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>size</b></td></tr>
<tr class="separator:a5f5323b52037218cf5ae888778b7f980"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5d042a7f6038a2ec9e5718d0c7fb31f"><td class="memItemLeft" align="right" valign="top"><a id="ae5d042a7f6038a2ec9e5718d0c7fb31f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>rehashing</b></td></tr>
<tr class="separator:ae5d042a7f6038a2ec9e5718d0c7fb31f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>An implementation of hash table using <a href="https://en.wikipedia.org/wiki/Double_hashing">double hashing</a> algorithm. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a79a9c914a6c68275b3640303d7faad8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79a9c914a6c68275b3640303d7faad8a">&#9670;&nbsp;</a></span>add()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void double_hashing::add </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>key</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks for load factor here </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>key value to add to the table </td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; {</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="comment">// auto* entry = new Entry();</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="comment">// entry-&gt;key = key;</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <span class="keywordtype">int</span> index = <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200">doubleHash</a>(key, <span class="keyword">false</span>);</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; table[index].key = key;</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; <span class="comment">// Load factor greater than 0.5 causes resizing</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="keywordflow">if</span> (++size / <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(totalSize) &gt;= 0.5) {</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <a class="code" href="../../d0/d65/namespacedouble__hashing.html#af4981819aae8bc7e7beeaef02615e30d">rehash</a>();</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; }</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d65/namespacedouble__hashing_a79a9c914a6c68275b3640303d7faad8a_cgraph.svg" width="640" height="256"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="a9c652b2e467e5d250dfe3bed83b12560"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c652b2e467e5d250dfe3bed83b12560">&#9670;&nbsp;</a></span>addInfo()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void double_hashing::addInfo </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>key</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Information about the adding process </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>key value to add to table </td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; {</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Initial table: &quot;</span>;</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd">display</a>();</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;hash of &quot;</span> &lt;&lt; key &lt;&lt; <span class="stringliteral">&quot; is &quot;</span> &lt;&lt; <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003">hashFxn</a>(key) &lt;&lt; <span class="stringliteral">&quot; % &quot;</span></div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; &lt;&lt; totalSize &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003">hashFxn</a>(key) % totalSize;</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; <a class="code" href="../../de/d47/string__fibonacci_8cpp.html#a28052eee05d43c2ebc5147c52bd50c35">add</a>(key);</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;New table: &quot;</span>;</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd">display</a>();</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160;}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d0/d65/namespacedouble__hashing_a9c652b2e467e5d250dfe3bed83b12560_cgraph.svg" width="100%" height="518"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
</div>
<a id="a1e901418c759627557eff359b8db38cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e901418c759627557eff359b8db38cd">&#9670;&nbsp;</a></span>display()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void double_hashing::display </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Displays the table </p><dl class="section return"><dt>Returns</dt><dd>None </dd></dl>
<div class="fragment"><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; {</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; totalSize; i++) {</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordflow">if</span> (table[i].key == notPresent) {</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot; Empty &quot;</span>;</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (table[i].key == tomb) {</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot; Tomb &quot;</span>;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; table[i].key;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; }</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; }</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d65/namespacedouble__hashing_a1e901418c759627557eff359b8db38cd_cgraph.svg" width="292" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="a8f8ff4fb018e1bb32d67d8a1885d3200"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f8ff4fb018e1bb32d67d8a1885d3200">&#9670;&nbsp;</a></span>doubleHash()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int double_hashing::doubleHash </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>searching</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Performs double hashing to resolve collisions. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>key value to apply double-hash on </td></tr>
<tr><td class="paramname">searching</td><td><code>true</code> to check for conflicts </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Index of key when found </dd>
<dd>
new hash if no conflicts present </dd></dl>
<div class="fragment"><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; {</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keywordtype">int</span> hash = <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(<a class="code" href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003">hashFxn</a>(key));</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordtype">int</span> i = 0;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <a class="code" href="../../d9/dde/structdouble__hashing_1_1_entry.html">Entry</a> entry;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordflow">do</span> {</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordtype">int</span> index =</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(hash + (i * <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082">otherHashFxn</a>(key))) % totalSize;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; entry = table[index];</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordflow">if</span> (searching) {</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordflow">if</span> (entry.<a class="code" href="../../d9/dde/structdouble__hashing_1_1_entry.html#ae114967c89dbba3b754dc4976bba3248">key</a> == notPresent) {</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keywordflow">return</span> notPresent;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; }</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6">searchingProber</a>(entry, key)) {</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Found key!&quot;</span> &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordflow">return</span> index;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; }</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Found tombstone or equal hash, checking next&quot;</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; i++;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b">putProber</a>(entry, key)) {</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">if</span> (!rehashing) {</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Spot found!&quot;</span> &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keywordflow">return</span> index;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; }</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordflow">if</span> (!rehashing) {</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Spot taken, looking at next (next index:&quot;</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; &lt;&lt; <span class="stringliteral">&quot; &quot;</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; &lt;&lt; <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(hash + (i * <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082">otherHashFxn</a>(key))) %</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; totalSize</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; &lt;&lt; <span class="stringliteral">&quot;)&quot;</span> &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; }</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; i++;</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; }</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordflow">if</span> (i == totalSize * 100) {</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;DoubleHash probe failed&quot;</span> &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordflow">return</span> notPresent;</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; }</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; } <span class="keywordflow">while</span> (entry.<a class="code" href="../../d9/dde/structdouble__hashing_1_1_entry.html#ae114967c89dbba3b754dc4976bba3248">key</a> != notPresent);</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordflow">return</span> notPresent;</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d65/namespacedouble__hashing_a8f8ff4fb018e1bb32d67d8a1885d3200_cgraph.svg" width="451" height="256"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="a0d90726ed1de7b3d2ae261baed048003"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d90726ed1de7b3d2ae261baed048003">&#9670;&nbsp;</a></span>hashFxn()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t double_hashing::hashFxn </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>key</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Hash a key. Uses the STL library's <code><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/hash.html">std::hash()</a></code> function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>value to hash </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>hash value of the key </dd></dl>
<div class="fragment"><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; {</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/hash.html">std::hash&lt;int&gt;</a> hash;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordflow">return</span> hash(key);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a33968a1178289ab61445dd4000df7082"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33968a1178289ab61445dd4000df7082">&#9670;&nbsp;</a></span>otherHashFxn()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t double_hashing::otherHashFxn </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>key</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Used for second hash function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>key value to hash </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>hash value of the key </dd></dl>
<div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; {</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/hash.html">std::hash&lt;int&gt;</a> hash;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordflow">return</span> 1 + (7 - (hash(key) % 7));</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="ac2adfce49ac57f6dbd1778d2c1ce0d2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2adfce49ac57f6dbd1778d2c1ce0d2b">&#9670;&nbsp;</a></span>putProber()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool double_hashing::putProber </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="../../d9/dde/structdouble__hashing_1_1_entry.html">Entry</a> &amp;&#160;</td>
<td class="paramname"><em>entry</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>key</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Finds empty spot in a vector </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">entry</td><td>vector to search in </td></tr>
<tr><td class="paramname">key</td><td>key to search for </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if key is not present or is a <code>toumb</code> </dd>
<dd>
<code>false</code> is already occupied </dd></dl>
<div class="fragment"><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; {</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">if</span> (entry.<a class="code" href="../../d9/dde/structdouble__hashing_1_1_entry.html#ae114967c89dbba3b754dc4976bba3248">key</a> == notPresent || entry.<a class="code" href="../../d9/dde/structdouble__hashing_1_1_entry.html#ae114967c89dbba3b754dc4976bba3248">key</a> == tomb) {</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; }</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="af4981819aae8bc7e7beeaef02615e30d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4981819aae8bc7e7beeaef02615e30d">&#9670;&nbsp;</a></span>rehash()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void double_hashing::rehash </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Rehashes the table into a bigger table </p><dl class="section return"><dt>Returns</dt><dd>None </dd></dl>
<div class="fragment"><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; {</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="comment">// Necessary so wall of add info isn&#39;t printed all at once</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; rehashing = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keywordtype">int</span> oldSize = totalSize;</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;Entry&gt;</a> oldTable(table);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="comment">// Really this should use the next prime number greater than totalSize * 2</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; table = <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;Entry&gt;</a>(totalSize * 2);</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; totalSize *= 2;</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; oldSize; i++) {</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordflow">if</span> (oldTable[i].key != -1 &amp;&amp; oldTable[i].key != notPresent) {</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; size--; <span class="comment">// Size stays the same (add increments size)</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <a class="code" href="../../de/d47/string__fibonacci_8cpp.html#a28052eee05d43c2ebc5147c52bd50c35">add</a>(oldTable[i].key);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; }</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; }</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="comment">// delete[] oldTable;</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="comment">// oldTable.reset();</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; rehashing = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Table was rehashed, new size is: &quot;</span> &lt;&lt; totalSize &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d0/d65/namespacedouble__hashing_af4981819aae8bc7e7beeaef02615e30d_cgraph.svg" width="100%" height="492"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
</div>
<a id="a5d06e4598569526294f10104875f6824"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d06e4598569526294f10104875f6824">&#9670;&nbsp;</a></span>removalInfo()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void double_hashing::removalInfo </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>key</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Information about removal process </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>key value to remove from table </td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; {</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Initial table: &quot;</span>;</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd">display</a>();</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;hash of &quot;</span> &lt;&lt; key &lt;&lt; <span class="stringliteral">&quot; is &quot;</span> &lt;&lt; <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003">hashFxn</a>(key) &lt;&lt; <span class="stringliteral">&quot; % &quot;</span></div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; &lt;&lt; totalSize &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003">hashFxn</a>(key) % totalSize;</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a28083ecac6eb94b643281875c8665931">remove</a>(key);</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;New table: &quot;</span>;</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd">display</a>();</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160;}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d0/d65/namespacedouble__hashing_a5d06e4598569526294f10104875f6824_cgraph.svg" width="100%" height="499"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
</div>
<a id="a28083ecac6eb94b643281875c8665931"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28083ecac6eb94b643281875c8665931">&#9670;&nbsp;</a></span>remove()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void double_hashing::remove </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>key</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Removes key. Leaves tombstone upon removal. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">key</td><td>key value to remove </td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; {</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keywordtype">int</span> index = <a class="code" href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200">doubleHash</a>(key, <span class="keyword">true</span>);</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keywordflow">if</span> (index == notPresent) {</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;key not found&quot;</span> &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; }</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; table[index].key = tomb;</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Removal successful, leaving tombstone&quot;</span> &lt;&lt; <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; size--;</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;}</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d65/namespacedouble__hashing_a28083ecac6eb94b643281875c8665931_cgraph.svg" width="662" height="256"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
</div>
<a id="a29f543e2626bad58907661e1e45028a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29f543e2626bad58907661e1e45028a6">&#9670;&nbsp;</a></span>searchingProber()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool double_hashing::searchingProber </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="../../d9/dde/structdouble__hashing_1_1_entry.html">Entry</a> &amp;&#160;</td>
<td class="paramname"><em>entry</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>key</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Looks for a matching key </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">entry</td><td>vector to search in </td></tr>
<tr><td class="paramname">key</td><td>key value to search </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if found </dd>
<dd>
<code>false</code> if not found </dd></dl>
<div class="fragment"><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; {</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keywordflow">if</span> (entry.<a class="code" href="../../d9/dde/structdouble__hashing_1_1_entry.html#ae114967c89dbba3b754dc4976bba3248">key</a> == key) {</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; }</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="astructdouble__hashing_1_1_entry_html"><div class="ttname"><a href="../../d9/dde/structdouble__hashing_1_1_entry.html">double_hashing::Entry</a></div><div class="ttdef"><b>Definition:</b> double_hash_hash_table.cpp:36</div></div>
<div class="ttc" id="anamespacedouble__hashing_html_a33968a1178289ab61445dd4000df7082"><div class="ttname"><a href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082">double_hashing::otherHashFxn</a></div><div class="ttdeci">size_t otherHashFxn(int key)</div><div class="ttdoc">Used for second hash function.</div><div class="ttdef"><b>Definition:</b> double_hash_hash_table.cpp:58</div></div>
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="anamespacedouble__hashing_html_ac2adfce49ac57f6dbd1778d2c1ce0d2b"><div class="ttname"><a href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b">double_hashing::putProber</a></div><div class="ttdeci">bool putProber(const Entry &amp;entry, int key)</div><div class="ttdef"><b>Definition:</b> double_hash_hash_table.cpp:120</div></div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
<div class="ttc" id="anamespacedouble__hashing_html_a0d90726ed1de7b3d2ae261baed048003"><div class="ttname"><a href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003">double_hashing::hashFxn</a></div><div class="ttdeci">size_t hashFxn(int key)</div><div class="ttdoc">Hash a key. Uses the STL library's std::hash() function.</div><div class="ttdef"><b>Definition:</b> double_hash_hash_table.cpp:47</div></div>
<div class="ttc" id="anamespacedouble__hashing_html_af4981819aae8bc7e7beeaef02615e30d"><div class="ttname"><a href="../../d0/d65/namespacedouble__hashing.html#af4981819aae8bc7e7beeaef02615e30d">double_hashing::rehash</a></div><div class="ttdeci">void rehash()</div><div class="ttdef"><b>Definition:</b> double_hash_hash_table.cpp:161</div></div>
<div class="ttc" id="anamespacedouble__hashing_html_a1e901418c759627557eff359b8db38cd"><div class="ttname"><a href="../../d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd">double_hashing::display</a></div><div class="ttdeci">void display()</div><div class="ttdef"><b>Definition:</b> double_hash_hash_table.cpp:143</div></div>
<div class="ttc" id="anamespacedouble__hashing_html_a28083ecac6eb94b643281875c8665931"><div class="ttname"><a href="../../d0/d65/namespacedouble__hashing.html#a28083ecac6eb94b643281875c8665931">double_hashing::remove</a></div><div class="ttdeci">void remove(int key)</div><div class="ttdef"><b>Definition:</b> double_hash_hash_table.cpp:199</div></div>
<div class="ttc" id="aendl_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a></div><div class="ttdeci">T endl(T... args)</div></div>
<div class="ttc" id="anamespacedouble__hashing_html_a29f543e2626bad58907661e1e45028a6"><div class="ttname"><a href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6">double_hashing::searchingProber</a></div><div class="ttdeci">bool searchingProber(const Entry &amp;entry, int key)</div><div class="ttdef"><b>Definition:</b> double_hash_hash_table.cpp:133</div></div>
<div class="ttc" id="anamespacedouble__hashing_html_a8f8ff4fb018e1bb32d67d8a1885d3200"><div class="ttname"><a href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200">double_hashing::doubleHash</a></div><div class="ttdeci">int doubleHash(int key, bool searching)</div><div class="ttdoc">Performs double hashing to resolve collisions.</div><div class="ttdef"><b>Definition:</b> double_hash_hash_table.cpp:71</div></div>
<div class="ttc" id="astring__fibonacci_8cpp_html_a28052eee05d43c2ebc5147c52bd50c35"><div class="ttname"><a href="../../de/d47/string__fibonacci_8cpp.html#a28052eee05d43c2ebc5147c52bd50c35">add</a></div><div class="ttdeci">std::string add(std::string a, std::string b)</div><div class="ttdef"><b>Definition:</b> string_fibonacci.cpp:24</div></div>
<div class="ttc" id="astructdouble__hashing_1_1_entry_html_ae114967c89dbba3b754dc4976bba3248"><div class="ttname"><a href="../../d9/dde/structdouble__hashing_1_1_entry.html#ae114967c89dbba3b754dc4976bba3248">double_hashing::Entry::key</a></div><div class="ttdeci">int key</div><div class="ttdoc">key value</div><div class="ttdef"><b>Definition:</b> double_hash_hash_table.cpp:38</div></div>
<div class="ttc" id="ahash_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/hash.html">std::hash</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../d0/d65/namespacedouble__hashing.html">double_hashing</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.18 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,4 @@
var namespacedouble__hashing =
[
[ "Entry", "d9/dde/structdouble__hashing_1_1_entry.html", "d9/dde/structdouble__hashing_1_1_entry" ]
];

View File

@@ -0,0 +1,4 @@
<map id="double_hashing::display" name="double_hashing::display">
<area shape="rect" id="node1" title=" " alt="" coords="5,5,167,32"/>
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="215,5,287,32"/>
</map>

View File

@@ -0,0 +1 @@
cab5710760fa96f48aaf390ee8bbad1a

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.44.1 (20200629.0846)
-->
<!-- Title: double_hashing::display Pages: 1 -->
<svg width="219pt" height="28pt"
viewBox="0.00 0.00 219.00 28.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 24)">
<title>double_hashing::display</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-24 215,-24 215,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title=" ">
<polygon fill="#bfbfbf" stroke="black" points="0,-0.5 0,-19.5 121,-19.5 121,-0.5 0,-0.5"/>
<text text-anchor="middle" x="60.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::display</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="157,-0.5 157,-19.5 211,-19.5 211,-0.5 157,-0.5"/>
<text text-anchor="middle" x="184" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M121.18,-10C129.86,-10 138.57,-10 146.6,-10"/>
<polygon fill="midnightblue" stroke="midnightblue" points="146.7,-13.5 156.7,-10 146.7,-6.5 146.7,-13.5"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -0,0 +1,9 @@
<map id="double_hashing::remove" name="double_hashing::remove">
<area shape="rect" id="node1" title=" " alt="" coords="5,56,168,83"/>
<area shape="rect" id="node2" href="$d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" title="Performs double hashing to resolve collisions." alt="" coords="216,81,405,108"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="519,5,591,32"/>
<area shape="rect" id="node4" href="$d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" title="Hash a key. Uses the STL library&#39;s std::hash() function." alt="" coords="469,56,640,83"/>
<area shape="rect" id="node5" href="$d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" title="Used for second hash function." alt="" coords="453,107,656,133"/>
<area shape="rect" id="node6" href="$d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" title=" " alt="" coords="467,157,643,184"/>
<area shape="rect" id="node7" href="$d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" title=" " alt="" coords="467,209,643,250"/>
</map>

View File

@@ -0,0 +1 @@
fb4767eea81b3f03911226bb3a2fe9b7

View File

@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.44.1 (20200629.0846)
-->
<!-- Title: double_hashing::remove Pages: 1 -->
<svg width="496pt" height="192pt"
viewBox="0.00 0.00 496.00 191.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 187.5)">
<title>double_hashing::remove</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-187.5 492,-187.5 492,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title=" ">
<polygon fill="#bfbfbf" stroke="black" points="0,-126 0,-145 122,-145 122,-126 0,-126"/>
<text text-anchor="middle" x="61" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::remove</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" target="_top" xlink:title="Performs double hashing to resolve collisions.">
<polygon fill="white" stroke="black" points="158,-107 158,-126 300,-126 300,-107 158,-107"/>
<text text-anchor="middle" x="229" y="-114" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::doubleHash</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M122.4,-128.59C130.66,-127.64 139.25,-126.66 147.79,-125.68"/>
<polygon fill="midnightblue" stroke="midnightblue" points="148.25,-129.15 157.79,-124.54 147.45,-122.2 148.25,-129.15"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="385,-164 385,-183 439,-183 439,-164 385,-164"/>
<text text-anchor="middle" x="412" y="-171" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge7" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M122.39,-142.08C195.09,-149.99 314.84,-163.03 374.65,-169.54"/>
<polygon fill="midnightblue" stroke="midnightblue" points="374.43,-173.04 384.75,-170.64 375.19,-166.08 374.43,-173.04"/>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M254.62,-126.09C275.96,-134.21 307.77,-145.88 336,-154.5 348.55,-158.33 362.43,-162 374.81,-165.08"/>
<polygon fill="midnightblue" stroke="midnightblue" points="374.25,-168.54 384.8,-167.52 375.91,-161.74 374.25,-168.54"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" target="_top" xlink:title="Hash a key. Uses the STL library&#39;s std::hash() function.">
<polygon fill="white" stroke="black" points="348,-126 348,-145 476,-145 476,-126 348,-126"/>
<text text-anchor="middle" x="412" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::hashFxn</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node2&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M300.24,-123.87C312.5,-125.16 325.29,-126.5 337.64,-127.8"/>
<polygon fill="midnightblue" stroke="midnightblue" points="337.58,-131.31 347.89,-128.88 338.31,-124.35 337.58,-131.31"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" target="_top" xlink:title="Used for second hash function.">
<polygon fill="white" stroke="black" points="336,-88 336,-107 488,-107 488,-88 336,-88"/>
<text text-anchor="middle" x="412" y="-95" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::otherHashFxn</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node2&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M300.24,-109.13C308.59,-108.25 317.19,-107.35 325.73,-106.45"/>
<polygon fill="midnightblue" stroke="midnightblue" points="326.13,-109.93 335.71,-105.4 325.4,-102.97 326.13,-109.93"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="346,-50 346,-69 478,-69 478,-50 346,-50"/>
<text text-anchor="middle" x="412" y="-57" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::putProber</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node2&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M254.62,-106.91C275.96,-98.79 307.77,-87.12 336,-78.5 343.85,-76.1 352.24,-73.77 360.44,-71.6"/>
<polygon fill="midnightblue" stroke="midnightblue" points="361.52,-74.94 370.32,-69.05 359.76,-68.16 361.52,-74.94"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="346,-0.5 346,-30.5 478,-30.5 478,-0.5 346,-0.5"/>
<text text-anchor="start" x="354" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::searching</text>
<text text-anchor="middle" x="412" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">Prober</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node2&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M241.03,-106.85C259.53,-91.09 298.49,-59.65 336,-40.5 340.28,-38.31 344.8,-36.26 349.4,-34.34"/>
<polygon fill="midnightblue" stroke="midnightblue" points="350.91,-37.51 358.93,-30.59 348.34,-30.99 350.91,-37.51"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -0,0 +1,11 @@
<map id="double_hashing::removalInfo" name="double_hashing::removalInfo">
<area shape="rect" id="node1" title=" " alt="" coords="5,49,193,75"/>
<area shape="rect" id="node2" href="$d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd" title=" " alt="" coords="466,23,627,50"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="755,15,827,42"/>
<area shape="rect" id="node4" href="$d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" title="Hash a key. Uses the STL library&#39;s std::hash() function." alt="" coords="705,234,876,261"/>
<area shape="rect" id="node5" href="$d0/d65/namespacedouble__hashing.html#a28083ecac6eb94b643281875c8665931" title=" " alt="" coords="241,74,404,101"/>
<area shape="rect" id="node6" href="$d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" title="Performs double hashing to resolve collisions." alt="" coords="452,125,641,151"/>
<area shape="rect" id="node7" href="$d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" title="Used for second hash function." alt="" coords="689,183,892,210"/>
<area shape="rect" id="node8" href="$d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" title=" " alt="" coords="703,66,879,93"/>
<area shape="rect" id="node9" href="$d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" title=" " alt="" coords="703,117,879,159"/>
</map>

View File

@@ -0,0 +1 @@
5b93a99a76a47e8857f488e4cb867c34

View File

@@ -0,0 +1,255 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.44.1 (20200629.0846)
-->
<!-- Title: double_hashing::removalInfo Pages: 1 -->
<!--zoomable 199 -->
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="text/javascript"><![CDATA[
var edges = document.getElementsByTagName('g');
if (edges && edges.length) {
for (var i=0;i<edges.length;i++) {
if (edges[i].id.substr(0,4)=='edge') {
edges[i].setAttribute('class','edge');
}
}
}
]]></script>
<defs>
<circle id="rim" cx="0" cy="0" r="7"/>
<circle id="rim2" cx="0" cy="0" r="3.5"/>
<g id="zoomPlus">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/>
</use>
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="zoomMin">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/>
</use>
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="dirArrow">
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="resetDef">
<use xlink:href="#rim2" fill="#404040">
<set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/>
</use>
</g>
</defs>
<script type="text/javascript">
var viewWidth = 673;
var viewHeight = 199;
var sectionId = 'dynsection-5';
</script>
<script xlink:href="../../svgpan.js"/>
<svg id="graph" class="graph">
<g id="viewport">
<title>double_hashing::removalInfo</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-195.39 669,-195.39 669,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title=" ">
<polygon fill="#bfbfbf" stroke="black" points="0,-139.5 0,-158.5 141,-158.5 141,-139.5 0,-139.5"/>
<text text-anchor="middle" x="70.5" y="-146.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::removalInfo</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="345.5,-158.5 345.5,-177.5 466.5,-177.5 466.5,-158.5 345.5,-158.5"/>
<text text-anchor="middle" x="406" y="-165.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::display</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M141.01,-152.96C198,-156.21 278.3,-160.78 335.34,-164.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="335.17,-167.53 345.35,-164.6 335.57,-160.54 335.17,-167.53"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="562,-164.5 562,-183.5 616,-183.5 616,-164.5 562,-164.5"/>
<text text-anchor="middle" x="589" y="-171.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M109.87,-158.53C129.79,-163.18 154.59,-168.51 177,-172 308.91,-192.56 343.73,-194.78 477,-187 501.97,-185.54 529.94,-182.26 551.55,-179.35"/>
<polygon fill="midnightblue" stroke="midnightblue" points="552.18,-182.8 561.61,-177.97 551.23,-175.87 552.18,-182.8"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" target="_top" xlink:title="Hash a key. Uses the STL library&#39;s std::hash() function.">
<polygon fill="white" stroke="black" points="525,-0.5 525,-19.5 653,-19.5 653,-0.5 525,-0.5"/>
<text text-anchor="middle" x="589" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::hashFxn</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M95.98,-139.36C117.21,-131.19 148.86,-119.5 177,-111 302.8,-73 453.43,-38.8 532.79,-21.64"/>
<polygon fill="midnightblue" stroke="midnightblue" points="533.54,-25.06 542.58,-19.53 532.06,-18.21 533.54,-25.06"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a28083ecac6eb94b643281875c8665931" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="177,-120.5 177,-139.5 299,-139.5 299,-120.5 177,-120.5"/>
<text text-anchor="middle" x="238" y="-127.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::remove</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M141.21,-141C149.62,-140.03 158.22,-139.04 166.65,-138.08"/>
<polygon fill="midnightblue" stroke="midnightblue" points="167.28,-141.53 176.81,-136.91 166.48,-134.57 167.28,-141.53"/>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M466.52,-169.97C494.52,-170.9 527.02,-171.98 551.36,-172.79"/>
<polygon fill="midnightblue" stroke="midnightblue" points="551.48,-176.29 561.59,-173.12 551.71,-169.29 551.48,-176.29"/>
</g>
<!-- Node5&#45;&gt;Node3 -->
<g id="edge12" class="edge">
<title>Node5&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M299.43,-132.45C347.7,-134.98 416.96,-139.89 477,-149 502.29,-152.84 530.4,-159.19 552,-164.53"/>
<polygon fill="midnightblue" stroke="midnightblue" points="551.18,-167.93 561.74,-166.98 552.89,-161.15 551.18,-167.93"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" target="_top" xlink:title="Performs double hashing to resolve collisions.">
<polygon fill="white" stroke="black" points="335,-82.5 335,-101.5 477,-101.5 477,-82.5 335,-82.5"/>
<text text-anchor="middle" x="406" y="-89.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::doubleHash</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge6" class="edge">
<title>Node5&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M280.89,-120.41C302.89,-115.37 330.05,-109.16 353.35,-103.82"/>
<polygon fill="midnightblue" stroke="midnightblue" points="354.45,-107.16 363.41,-101.52 352.88,-100.34 354.45,-107.16"/>
</g>
<!-- Node6&#45;&gt;Node3 -->
<g id="edge7" class="edge">
<title>Node6&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M446,-101.59C456.55,-105.17 467.64,-109.89 477,-116 496.76,-128.88 492.73,-142.94 513,-155 524.75,-161.99 539.01,-166.43 551.93,-169.23"/>
<polygon fill="midnightblue" stroke="midnightblue" points="551.45,-172.71 561.93,-171.15 552.77,-165.83 551.45,-172.71"/>
</g>
<!-- Node6&#45;&gt;Node4 -->
<g id="edge8" class="edge">
<title>Node6&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M420.39,-82.3C439.87,-68.61 477.59,-43.65 513,-29 518.95,-26.54 525.29,-24.34 531.68,-22.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="533.06,-25.62 541.71,-19.5 531.13,-18.9 533.06,-25.62"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" target="_top" xlink:title="Used for second hash function.">
<polygon fill="white" stroke="black" points="513,-38.5 513,-57.5 665,-57.5 665,-38.5 513,-38.5"/>
<text text-anchor="middle" x="589" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::otherHashFxn</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node7 -->
<g id="edge9" class="edge">
<title>Node6&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M446.27,-82.45C473.43,-75.85 509.77,-67.02 538.85,-59.95"/>
<polygon fill="midnightblue" stroke="midnightblue" points="539.91,-63.29 548.8,-57.53 538.26,-56.49 539.91,-63.29"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="523,-126.5 523,-145.5 655,-145.5 655,-126.5 523,-126.5"/>
<text text-anchor="middle" x="589" y="-133.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::putProber</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node8 -->
<g id="edge10" class="edge">
<title>Node6&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M446.27,-101.55C473.43,-108.15 509.77,-116.98 538.85,-124.05"/>
<polygon fill="midnightblue" stroke="midnightblue" points="538.26,-127.51 548.8,-126.47 539.91,-120.71 538.26,-127.51"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="523,-77 523,-107 655,-107 655,-77 523,-77"/>
<text text-anchor="start" x="531" y="-95" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::searching</text>
<text text-anchor="middle" x="589" y="-84" font-family="Helvetica,sans-Serif" font-size="10.00">Prober</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node9 -->
<g id="edge11" class="edge">
<title>Node6&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M477.24,-92C488.84,-92 500.92,-92 512.64,-92"/>
<polygon fill="midnightblue" stroke="midnightblue" points="512.84,-95.5 522.84,-92 512.84,-88.5 512.84,-95.5"/>
</g>
</g>
</svg>
<g id="navigator" transform="translate(0 0)" fill="#404254">
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
<g id="arrowUp" xlink:href="#dirArrow" transform="translate(30 24)" onmousedown="handlePan(0,-1)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowUp.mouseover" end="arrowUp.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowRight" xlink:href="#dirArrow" transform="rotate(90) translate(36 -43)" onmousedown="handlePan(1,0)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowRight.mouseover" end="arrowRight.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowDown" xlink:href="#dirArrow" transform="rotate(180) translate(-30 -48)" onmousedown="handlePan(0,1)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowDown.mouseover" end="arrowDown.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowLeft" xlink:href="#dirArrow" transform="rotate(270) translate(-36 17)" onmousedown="handlePan(-1,0)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowLeft.mouseover" end="arrowLeft.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
</g>
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
<g id="arrow_out" transform="scale(0.3 0.3)">
<a xlink:href="namespacedouble__hashing_a5d06e4598569526294f10104875f6824_cgraph_org.svg" target="_base">
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
<path id="arrow"
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
style="fill:#404040;"/>
</a>
</g>
</svg>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,167 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.44.1 (20200629.0846)
-->
<!-- Title: double_hashing::removalInfo Pages: 1 -->
<svg width="673pt" height="199pt"
viewBox="0.00 0.00 673.00 199.39" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 195.39)">
<title>double_hashing::removalInfo</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-195.39 669,-195.39 669,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title=" ">
<polygon fill="#bfbfbf" stroke="black" points="0,-139.5 0,-158.5 141,-158.5 141,-139.5 0,-139.5"/>
<text text-anchor="middle" x="70.5" y="-146.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::removalInfo</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="345.5,-158.5 345.5,-177.5 466.5,-177.5 466.5,-158.5 345.5,-158.5"/>
<text text-anchor="middle" x="406" y="-165.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::display</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M141.01,-152.96C198,-156.21 278.3,-160.78 335.34,-164.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="335.17,-167.53 345.35,-164.6 335.57,-160.54 335.17,-167.53"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="562,-164.5 562,-183.5 616,-183.5 616,-164.5 562,-164.5"/>
<text text-anchor="middle" x="589" y="-171.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M109.87,-158.53C129.79,-163.18 154.59,-168.51 177,-172 308.91,-192.56 343.73,-194.78 477,-187 501.97,-185.54 529.94,-182.26 551.55,-179.35"/>
<polygon fill="midnightblue" stroke="midnightblue" points="552.18,-182.8 561.61,-177.97 551.23,-175.87 552.18,-182.8"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" target="_top" xlink:title="Hash a key. Uses the STL library&#39;s std::hash() function.">
<polygon fill="white" stroke="black" points="525,-0.5 525,-19.5 653,-19.5 653,-0.5 525,-0.5"/>
<text text-anchor="middle" x="589" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::hashFxn</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M95.98,-139.36C117.21,-131.19 148.86,-119.5 177,-111 302.8,-73 453.43,-38.8 532.79,-21.64"/>
<polygon fill="midnightblue" stroke="midnightblue" points="533.54,-25.06 542.58,-19.53 532.06,-18.21 533.54,-25.06"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a28083ecac6eb94b643281875c8665931" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="177,-120.5 177,-139.5 299,-139.5 299,-120.5 177,-120.5"/>
<text text-anchor="middle" x="238" y="-127.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::remove</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M141.21,-141C149.62,-140.03 158.22,-139.04 166.65,-138.08"/>
<polygon fill="midnightblue" stroke="midnightblue" points="167.28,-141.53 176.81,-136.91 166.48,-134.57 167.28,-141.53"/>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M466.52,-169.97C494.52,-170.9 527.02,-171.98 551.36,-172.79"/>
<polygon fill="midnightblue" stroke="midnightblue" points="551.48,-176.29 561.59,-173.12 551.71,-169.29 551.48,-176.29"/>
</g>
<!-- Node5&#45;&gt;Node3 -->
<g id="edge12" class="edge">
<title>Node5&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M299.43,-132.45C347.7,-134.98 416.96,-139.89 477,-149 502.29,-152.84 530.4,-159.19 552,-164.53"/>
<polygon fill="midnightblue" stroke="midnightblue" points="551.18,-167.93 561.74,-166.98 552.89,-161.15 551.18,-167.93"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" target="_top" xlink:title="Performs double hashing to resolve collisions.">
<polygon fill="white" stroke="black" points="335,-82.5 335,-101.5 477,-101.5 477,-82.5 335,-82.5"/>
<text text-anchor="middle" x="406" y="-89.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::doubleHash</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge6" class="edge">
<title>Node5&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M280.89,-120.41C302.89,-115.37 330.05,-109.16 353.35,-103.82"/>
<polygon fill="midnightblue" stroke="midnightblue" points="354.45,-107.16 363.41,-101.52 352.88,-100.34 354.45,-107.16"/>
</g>
<!-- Node6&#45;&gt;Node3 -->
<g id="edge7" class="edge">
<title>Node6&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M446,-101.59C456.55,-105.17 467.64,-109.89 477,-116 496.76,-128.88 492.73,-142.94 513,-155 524.75,-161.99 539.01,-166.43 551.93,-169.23"/>
<polygon fill="midnightblue" stroke="midnightblue" points="551.45,-172.71 561.93,-171.15 552.77,-165.83 551.45,-172.71"/>
</g>
<!-- Node6&#45;&gt;Node4 -->
<g id="edge8" class="edge">
<title>Node6&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M420.39,-82.3C439.87,-68.61 477.59,-43.65 513,-29 518.95,-26.54 525.29,-24.34 531.68,-22.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="533.06,-25.62 541.71,-19.5 531.13,-18.9 533.06,-25.62"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" target="_top" xlink:title="Used for second hash function.">
<polygon fill="white" stroke="black" points="513,-38.5 513,-57.5 665,-57.5 665,-38.5 513,-38.5"/>
<text text-anchor="middle" x="589" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::otherHashFxn</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node7 -->
<g id="edge9" class="edge">
<title>Node6&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M446.27,-82.45C473.43,-75.85 509.77,-67.02 538.85,-59.95"/>
<polygon fill="midnightblue" stroke="midnightblue" points="539.91,-63.29 548.8,-57.53 538.26,-56.49 539.91,-63.29"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="523,-126.5 523,-145.5 655,-145.5 655,-126.5 523,-126.5"/>
<text text-anchor="middle" x="589" y="-133.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::putProber</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node8 -->
<g id="edge10" class="edge">
<title>Node6&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M446.27,-101.55C473.43,-108.15 509.77,-116.98 538.85,-124.05"/>
<polygon fill="midnightblue" stroke="midnightblue" points="538.26,-127.51 548.8,-126.47 539.91,-120.71 538.26,-127.51"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="523,-77 523,-107 655,-107 655,-77 523,-77"/>
<text text-anchor="start" x="531" y="-95" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::searching</text>
<text text-anchor="middle" x="589" y="-84" font-family="Helvetica,sans-Serif" font-size="10.00">Prober</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node9 -->
<g id="edge11" class="edge">
<title>Node6&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M477.24,-92C488.84,-92 500.92,-92 512.64,-92"/>
<polygon fill="midnightblue" stroke="midnightblue" points="512.84,-95.5 522.84,-92 512.84,-88.5 512.84,-95.5"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@@ -0,0 +1,10 @@
<map id="double_hashing::add" name="double_hashing::add">
<area shape="rect" id="node1" title=" " alt="" coords="5,19,147,45"/>
<area shape="rect" id="node2" href="$d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" title="Performs double hashing to resolve collisions." alt="" coords="195,81,384,108"/>
<area shape="rect" id="node8" href="$d0/d65/namespacedouble__hashing.html#af4981819aae8bc7e7beeaef02615e30d" title=" " alt="" coords="210,19,369,45"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="497,5,569,32"/>
<area shape="rect" id="node4" href="$d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" title="Hash a key. Uses the STL library&#39;s std::hash() function." alt="" coords="448,56,619,83"/>
<area shape="rect" id="node5" href="$d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" title="Used for second hash function." alt="" coords="432,107,635,133"/>
<area shape="rect" id="node6" href="$d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" title=" " alt="" coords="445,157,621,184"/>
<area shape="rect" id="node7" href="$d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" title=" " alt="" coords="445,209,621,250"/>
</map>

View File

@@ -0,0 +1 @@
638be0c4bc7fd581c6282a62557ad2fd

View File

@@ -0,0 +1,140 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.44.1 (20200629.0846)
-->
<!-- Title: double_hashing::add Pages: 1 -->
<svg width="480pt" height="192pt"
viewBox="0.00 0.00 480.00 191.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 187.5)">
<title>double_hashing::add</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-187.5 476,-187.5 476,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title=" ">
<polygon fill="#bfbfbf" stroke="black" points="0,-154 0,-173 106,-173 106,-154 0,-154"/>
<text text-anchor="middle" x="53" y="-161" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::add</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" target="_top" xlink:title="Performs double hashing to resolve collisions.">
<polygon fill="white" stroke="black" points="142,-107 142,-126 284,-126 284,-107 142,-107"/>
<text text-anchor="middle" x="213" y="-114" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::doubleHash</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M85.97,-153.99C110.2,-146.78 143.71,-136.82 170.08,-128.97"/>
<polygon fill="midnightblue" stroke="midnightblue" points="171.22,-132.28 179.8,-126.08 169.22,-125.57 171.22,-132.28"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#af4981819aae8bc7e7beeaef02615e30d" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="153.5,-154 153.5,-173 272.5,-173 272.5,-154 153.5,-154"/>
<text text-anchor="middle" x="213" y="-161" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::rehash</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node8 -->
<g id="edge7" class="edge">
<title>Node1&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M106.17,-157.11C117.97,-156.78 130.67,-156.68 143.04,-156.8"/>
<polygon fill="midnightblue" stroke="midnightblue" points="143.28,-160.3 153.33,-156.95 143.38,-153.3 143.28,-160.3"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="369,-164 369,-183 423,-183 423,-164 369,-164"/>
<text text-anchor="middle" x="396" y="-171" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M238.62,-126.09C259.96,-134.21 291.77,-145.88 320,-154.5 332.55,-158.33 346.43,-162 358.81,-165.08"/>
<polygon fill="midnightblue" stroke="midnightblue" points="358.25,-168.54 368.8,-167.52 359.91,-161.74 358.25,-168.54"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" target="_top" xlink:title="Hash a key. Uses the STL library&#39;s std::hash() function.">
<polygon fill="white" stroke="black" points="332,-126 332,-145 460,-145 460,-126 332,-126"/>
<text text-anchor="middle" x="396" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::hashFxn</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node2&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M284.24,-123.87C296.5,-125.16 309.29,-126.5 321.64,-127.8"/>
<polygon fill="midnightblue" stroke="midnightblue" points="321.58,-131.31 331.89,-128.88 322.31,-124.35 321.58,-131.31"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" target="_top" xlink:title="Used for second hash function.">
<polygon fill="white" stroke="black" points="320,-88 320,-107 472,-107 472,-88 320,-88"/>
<text text-anchor="middle" x="396" y="-95" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::otherHashFxn</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node2&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M284.24,-109.13C292.59,-108.25 301.19,-107.35 309.73,-106.45"/>
<polygon fill="midnightblue" stroke="midnightblue" points="310.13,-109.93 319.71,-105.4 309.4,-102.97 310.13,-109.93"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="330,-50 330,-69 462,-69 462,-50 330,-50"/>
<text text-anchor="middle" x="396" y="-57" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::putProber</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node2&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M238.62,-106.91C259.96,-98.79 291.77,-87.12 320,-78.5 327.85,-76.1 336.24,-73.77 344.44,-71.6"/>
<polygon fill="midnightblue" stroke="midnightblue" points="345.52,-74.94 354.32,-69.05 343.76,-68.16 345.52,-74.94"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="330,-0.5 330,-30.5 462,-30.5 462,-0.5 330,-0.5"/>
<text text-anchor="start" x="338" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::searching</text>
<text text-anchor="middle" x="396" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">Prober</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node2&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M225.03,-106.85C243.53,-91.09 282.49,-59.65 320,-40.5 324.28,-38.31 328.8,-36.26 333.4,-34.34"/>
<polygon fill="midnightblue" stroke="midnightblue" points="334.91,-37.51 342.93,-30.59 332.34,-30.99 334.91,-37.51"/>
</g>
<!-- Node8&#45;&gt;Node1 -->
<g id="edge8" class="edge">
<title>Node8&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M153.33,-170.05C141.24,-170.29 128.48,-170.32 116.27,-170.11"/>
<polygon fill="midnightblue" stroke="midnightblue" points="116.25,-166.61 106.17,-169.89 116.09,-173.61 116.25,-166.61"/>
</g>
<!-- Node8&#45;&gt;Node3 -->
<g id="edge9" class="edge">
<title>Node8&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M272.77,-166.75C301.13,-168.31 334.25,-170.14 358.85,-171.5"/>
<polygon fill="midnightblue" stroke="midnightblue" points="358.66,-175 368.84,-172.05 359.05,-168.01 358.66,-175"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@@ -0,0 +1,8 @@
<map id="double_hashing::doubleHash" name="double_hashing::doubleHash">
<area shape="rect" id="node1" title="Performs double hashing to resolve collisions." alt="" coords="5,107,195,133"/>
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="308,5,380,32"/>
<area shape="rect" id="node3" href="$d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" title="Hash a key. Uses the STL library&#39;s std::hash() function." alt="" coords="259,56,429,83"/>
<area shape="rect" id="node4" href="$d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" title="Used for second hash function." alt="" coords="243,107,445,133"/>
<area shape="rect" id="node5" href="$d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" title=" " alt="" coords="256,157,432,184"/>
<area shape="rect" id="node6" href="$d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" title=" " alt="" coords="256,209,432,250"/>
</map>

View File

@@ -0,0 +1 @@
cb87d8c49ae963efe3412e3c1716dcce

View File

@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.44.1 (20200629.0846)
-->
<!-- Title: double_hashing::doubleHash Pages: 1 -->
<svg width="338pt" height="192pt"
viewBox="0.00 0.00 338.00 191.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 187.5)">
<title>double_hashing::doubleHash</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-187.5 334,-187.5 334,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Performs double hashing to resolve collisions.">
<polygon fill="#bfbfbf" stroke="black" points="0,-88 0,-107 142,-107 142,-88 0,-88"/>
<text text-anchor="middle" x="71" y="-95" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::doubleHash</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="227,-164 227,-183 281,-183 281,-164 227,-164"/>
<text text-anchor="middle" x="254" y="-171" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M86.88,-107.03C106.9,-119.48 143.92,-141.25 178,-154.5 190.32,-159.29 204.26,-163.21 216.75,-166.21"/>
<polygon fill="midnightblue" stroke="midnightblue" points="216.3,-169.7 226.82,-168.52 217.86,-162.88 216.3,-169.7"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" target="_top" xlink:title="Hash a key. Uses the STL library&#39;s std::hash() function.">
<polygon fill="white" stroke="black" points="190,-126 190,-145 318,-145 318,-126 190,-126"/>
<text text-anchor="middle" x="254" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::hashFxn</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M117.67,-107.09C141.99,-112.19 172.08,-118.51 197.71,-123.89"/>
<polygon fill="midnightblue" stroke="midnightblue" points="197.15,-127.35 207.65,-125.98 198.59,-120.5 197.15,-127.35"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" target="_top" xlink:title="Used for second hash function.">
<polygon fill="white" stroke="black" points="178,-88 178,-107 330,-107 330,-88 178,-88"/>
<text text-anchor="middle" x="254" y="-95" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::otherHashFxn</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M142.24,-97.5C150.5,-97.5 159.01,-97.5 167.45,-97.5"/>
<polygon fill="midnightblue" stroke="midnightblue" points="167.71,-101 177.71,-97.5 167.71,-94 167.71,-101"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="188,-50 188,-69 320,-69 320,-50 188,-50"/>
<text text-anchor="middle" x="254" y="-57" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::putProber</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M117.67,-87.91C141.99,-82.81 172.08,-76.49 197.71,-71.11"/>
<polygon fill="midnightblue" stroke="midnightblue" points="198.59,-74.5 207.65,-69.02 197.15,-67.65 198.59,-74.5"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="188,-0.5 188,-30.5 320,-30.5 320,-0.5 188,-0.5"/>
<text text-anchor="start" x="196" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::searching</text>
<text text-anchor="middle" x="254" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">Prober</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node1&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M87.74,-87.93C108.07,-75.82 144.81,-54.83 178,-40.5 183.12,-38.29 188.5,-36.15 193.94,-34.12"/>
<polygon fill="midnightblue" stroke="midnightblue" points="195.51,-37.27 203.73,-30.58 193.13,-30.69 195.51,-37.27"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -0,0 +1,12 @@
<map id="double_hashing::addInfo" name="double_hashing::addInfo">
<area shape="rect" id="node1" title=" " alt="" coords="5,81,168,108"/>
<area shape="rect" id="node2" href="$d0/d65/namespacedouble__hashing.html#a79a9c914a6c68275b3640303d7faad8a" title=" " alt="" coords="226,107,367,133"/>
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="728,40,800,67"/>
<area shape="rect" id="node5" href="$d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" title="Hash a key. Uses the STL library&#39;s std::hash() function." alt="" coords="679,259,849,285"/>
<area shape="rect" id="node10" href="$d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd" title=" " alt="" coords="216,5,377,32"/>
<area shape="rect" id="node3" href="$d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" title="Performs double hashing to resolve collisions." alt="" coords="425,157,615,184"/>
<area shape="rect" id="node9" href="$d0/d65/namespacedouble__hashing.html#af4981819aae8bc7e7beeaef02615e30d" title=" " alt="" coords="441,107,599,133"/>
<area shape="rect" id="node6" href="$d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" title="Used for second hash function." alt="" coords="663,157,865,184"/>
<area shape="rect" id="node7" href="$d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" title=" " alt="" coords="676,208,852,235"/>
<area shape="rect" id="node8" href="$d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" title=" " alt="" coords="676,91,852,133"/>
</map>

View File

@@ -0,0 +1 @@
798a038178fb73904112459974d2516a

View File

@@ -0,0 +1,276 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.44.1 (20200629.0846)
-->
<!-- Title: double_hashing::addInfo Pages: 1 -->
<!--zoomable 218 -->
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="text/javascript"><![CDATA[
var edges = document.getElementsByTagName('g');
if (edges && edges.length) {
for (var i=0;i<edges.length;i++) {
if (edges[i].id.substr(0,4)=='edge') {
edges[i].setAttribute('class','edge');
}
}
}
]]></script>
<defs>
<circle id="rim" cx="0" cy="0" r="7"/>
<circle id="rim2" cx="0" cy="0" r="3.5"/>
<g id="zoomPlus">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/>
</use>
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="zoomMin">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/>
</use>
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="dirArrow">
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="resetDef">
<use xlink:href="#rim2" fill="#404040">
<set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/>
</use>
</g>
</defs>
<script type="text/javascript">
var viewWidth = 653;
var viewHeight = 218;
var sectionId = 'dynsection-1';
</script>
<script xlink:href="../../svgpan.js"/>
<svg id="graph" class="graph">
<g id="viewport">
<title>double_hashing::addInfo</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-214 649,-214 649,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title=" ">
<polygon fill="#bfbfbf" stroke="black" points="0,-133.5 0,-152.5 122,-152.5 122,-133.5 0,-133.5"/>
<text text-anchor="middle" x="61" y="-140.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::addInfo</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a79a9c914a6c68275b3640303d7faad8a" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="165.5,-114.5 165.5,-133.5 271.5,-133.5 271.5,-114.5 165.5,-114.5"/>
<text text-anchor="middle" x="218.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::add</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M122.12,-135.65C132.87,-134.34 144.1,-132.97 154.92,-131.65"/>
<polygon fill="midnightblue" stroke="midnightblue" points="155.63,-135.09 165.13,-130.4 154.78,-128.14 155.63,-135.09"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="542,-164.5 542,-183.5 596,-183.5 596,-164.5 542,-164.5"/>
<text text-anchor="middle" x="569" y="-171.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge13" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M122.03,-146.68C228.08,-153.17 445.5,-166.5 531.67,-171.77"/>
<polygon fill="midnightblue" stroke="midnightblue" points="531.55,-175.27 541.75,-172.39 531.98,-168.29 531.55,-175.27"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" target="_top" xlink:title="Hash a key. Uses the STL library&#39;s std::hash() function.">
<polygon fill="white" stroke="black" points="505,-0.5 505,-19.5 633,-19.5 633,-0.5 505,-0.5"/>
<text text-anchor="middle" x="569" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::hashFxn</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge14" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M83.8,-133.36C103.06,-125.09 132.03,-113.24 158,-105 278.55,-66.76 423.53,-36.8 504.78,-21.4"/>
<polygon fill="midnightblue" stroke="midnightblue" points="505.67,-24.8 514.85,-19.51 504.38,-17.92 505.67,-24.8"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="158,-190.5 158,-209.5 279,-209.5 279,-190.5 158,-190.5"/>
<text text-anchor="middle" x="218.5" y="-197.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::display</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node10 -->
<g id="edge11" class="edge">
<title>Node1&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M88.03,-152.54C113.7,-161.95 153.16,-176.41 181.76,-186.9"/>
<polygon fill="midnightblue" stroke="midnightblue" points="180.79,-190.27 191.39,-190.43 183.2,-183.7 180.79,-190.27"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" target="_top" xlink:title="Performs double hashing to resolve collisions.">
<polygon fill="white" stroke="black" points="315,-76.5 315,-95.5 457,-95.5 457,-76.5 315,-76.5"/>
<text text-anchor="middle" x="386" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::doubleHash</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M261.26,-114.41C283.2,-109.37 310.28,-103.16 333.51,-97.82"/>
<polygon fill="midnightblue" stroke="midnightblue" points="334.57,-101.17 343.54,-95.52 333.01,-94.35 334.57,-101.17"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#af4981819aae8bc7e7beeaef02615e30d" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="326.5,-114.5 326.5,-133.5 445.5,-133.5 445.5,-114.5 326.5,-114.5"/>
<text text-anchor="middle" x="386" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::rehash</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node9 -->
<g id="edge8" class="edge">
<title>Node2&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M271.87,-117.67C285.95,-117.26 301.39,-117.15 316.22,-117.34"/>
<polygon fill="midnightblue" stroke="midnightblue" points="316.3,-120.84 326.36,-117.51 316.42,-113.84 316.3,-120.84"/>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node3&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M438.53,-95.59C445.06,-98.04 451.41,-101.13 457,-105 479.51,-120.59 470.36,-139.6 493,-155 504.39,-162.75 518.7,-167.34 531.75,-170.06"/>
<polygon fill="midnightblue" stroke="midnightblue" points="531.41,-173.55 541.87,-171.86 532.64,-166.66 531.41,-173.55"/>
</g>
<!-- Node3&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node3&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M401.88,-76.47C421.9,-64.02 458.92,-42.25 493,-29 499.31,-26.55 506.04,-24.32 512.78,-22.34"/>
<polygon fill="midnightblue" stroke="midnightblue" points="513.93,-25.65 522.62,-19.59 512.05,-18.91 513.93,-25.65"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" target="_top" xlink:title="Used for second hash function.">
<polygon fill="white" stroke="black" points="493,-76.5 493,-95.5 645,-95.5 645,-76.5 493,-76.5"/>
<text text-anchor="middle" x="569" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::otherHashFxn</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node3&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M457.24,-86C465.5,-86 474.01,-86 482.45,-86"/>
<polygon fill="midnightblue" stroke="midnightblue" points="482.71,-89.5 492.71,-86 482.71,-82.5 482.71,-89.5"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="503,-38.5 503,-57.5 635,-57.5 635,-38.5 503,-38.5"/>
<text text-anchor="middle" x="569" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::putProber</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node3&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M432.67,-76.41C456.99,-71.31 487.08,-64.99 512.71,-59.61"/>
<polygon fill="midnightblue" stroke="midnightblue" points="513.59,-63 522.65,-57.52 512.15,-56.15 513.59,-63"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="503,-115 503,-145 635,-145 635,-115 503,-115"/>
<text text-anchor="start" x="511" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::searching</text>
<text text-anchor="middle" x="569" y="-122" font-family="Helvetica,sans-Serif" font-size="10.00">Prober</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node8 -->
<g id="edge7" class="edge">
<title>Node3&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M426.27,-95.55C446.74,-100.52 472.43,-106.77 496.29,-112.57"/>
<polygon fill="midnightblue" stroke="midnightblue" points="495.48,-115.97 506.03,-114.93 497.14,-109.17 495.48,-115.97"/>
</g>
<!-- Node9&#45;&gt;Node2 -->
<g id="edge9" class="edge">
<title>Node9&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M326.36,-130.49C312.06,-130.81 296.71,-130.83 282.23,-130.57"/>
<polygon fill="midnightblue" stroke="midnightblue" points="281.94,-127.06 271.87,-130.33 281.78,-134.06 281.94,-127.06"/>
</g>
<!-- Node9&#45;&gt;Node4 -->
<g id="edge10" class="edge">
<title>Node9&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M418.45,-133.53C439.5,-139.82 467.84,-148.14 493,-155 505.65,-158.45 519.57,-162.04 531.94,-165.15"/>
<polygon fill="midnightblue" stroke="midnightblue" points="531.36,-168.61 541.91,-167.64 533.05,-161.82 531.36,-168.61"/>
</g>
<!-- Node10&#45;&gt;Node4 -->
<g id="edge12" class="edge">
<title>Node10&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M279.01,-195.56C351.45,-190.16 471.52,-181.2 531.52,-176.72"/>
<polygon fill="midnightblue" stroke="midnightblue" points="531.94,-180.2 541.65,-175.97 531.42,-173.22 531.94,-180.2"/>
</g>
</g>
</svg>
<g id="navigator" transform="translate(0 0)" fill="#404254">
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
<g id="arrowUp" xlink:href="#dirArrow" transform="translate(30 24)" onmousedown="handlePan(0,-1)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowUp.mouseover" end="arrowUp.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowRight" xlink:href="#dirArrow" transform="rotate(90) translate(36 -43)" onmousedown="handlePan(1,0)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowRight.mouseover" end="arrowRight.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowDown" xlink:href="#dirArrow" transform="rotate(180) translate(-30 -48)" onmousedown="handlePan(0,1)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowDown.mouseover" end="arrowDown.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowLeft" xlink:href="#dirArrow" transform="rotate(270) translate(-36 17)" onmousedown="handlePan(-1,0)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowLeft.mouseover" end="arrowLeft.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
</g>
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
<g id="arrow_out" transform="scale(0.3 0.3)">
<a xlink:href="namespacedouble__hashing_a9c652b2e467e5d250dfe3bed83b12560_cgraph_org.svg" target="_base">
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
<path id="arrow"
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
style="fill:#404040;"/>
</a>
</g>
</svg>
</svg>

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,188 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.44.1 (20200629.0846)
-->
<!-- Title: double_hashing::addInfo Pages: 1 -->
<svg width="653pt" height="218pt"
viewBox="0.00 0.00 653.00 218.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 214)">
<title>double_hashing::addInfo</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-214 649,-214 649,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title=" ">
<polygon fill="#bfbfbf" stroke="black" points="0,-133.5 0,-152.5 122,-152.5 122,-133.5 0,-133.5"/>
<text text-anchor="middle" x="61" y="-140.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::addInfo</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a79a9c914a6c68275b3640303d7faad8a" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="165.5,-114.5 165.5,-133.5 271.5,-133.5 271.5,-114.5 165.5,-114.5"/>
<text text-anchor="middle" x="218.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::add</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M122.12,-135.65C132.87,-134.34 144.1,-132.97 154.92,-131.65"/>
<polygon fill="midnightblue" stroke="midnightblue" points="155.63,-135.09 165.13,-130.4 154.78,-128.14 155.63,-135.09"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="542,-164.5 542,-183.5 596,-183.5 596,-164.5 542,-164.5"/>
<text text-anchor="middle" x="569" y="-171.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge13" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M122.03,-146.68C228.08,-153.17 445.5,-166.5 531.67,-171.77"/>
<polygon fill="midnightblue" stroke="midnightblue" points="531.55,-175.27 541.75,-172.39 531.98,-168.29 531.55,-175.27"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" target="_top" xlink:title="Hash a key. Uses the STL library&#39;s std::hash() function.">
<polygon fill="white" stroke="black" points="505,-0.5 505,-19.5 633,-19.5 633,-0.5 505,-0.5"/>
<text text-anchor="middle" x="569" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::hashFxn</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge14" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M83.8,-133.36C103.06,-125.09 132.03,-113.24 158,-105 278.55,-66.76 423.53,-36.8 504.78,-21.4"/>
<polygon fill="midnightblue" stroke="midnightblue" points="505.67,-24.8 514.85,-19.51 504.38,-17.92 505.67,-24.8"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a1e901418c759627557eff359b8db38cd" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="158,-190.5 158,-209.5 279,-209.5 279,-190.5 158,-190.5"/>
<text text-anchor="middle" x="218.5" y="-197.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::display</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node10 -->
<g id="edge11" class="edge">
<title>Node1&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M88.03,-152.54C113.7,-161.95 153.16,-176.41 181.76,-186.9"/>
<polygon fill="midnightblue" stroke="midnightblue" points="180.79,-190.27 191.39,-190.43 183.2,-183.7 180.79,-190.27"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" target="_top" xlink:title="Performs double hashing to resolve collisions.">
<polygon fill="white" stroke="black" points="315,-76.5 315,-95.5 457,-95.5 457,-76.5 315,-76.5"/>
<text text-anchor="middle" x="386" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::doubleHash</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M261.26,-114.41C283.2,-109.37 310.28,-103.16 333.51,-97.82"/>
<polygon fill="midnightblue" stroke="midnightblue" points="334.57,-101.17 343.54,-95.52 333.01,-94.35 334.57,-101.17"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#af4981819aae8bc7e7beeaef02615e30d" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="326.5,-114.5 326.5,-133.5 445.5,-133.5 445.5,-114.5 326.5,-114.5"/>
<text text-anchor="middle" x="386" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::rehash</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node9 -->
<g id="edge8" class="edge">
<title>Node2&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M271.87,-117.67C285.95,-117.26 301.39,-117.15 316.22,-117.34"/>
<polygon fill="midnightblue" stroke="midnightblue" points="316.3,-120.84 326.36,-117.51 316.42,-113.84 316.3,-120.84"/>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node3&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M438.53,-95.59C445.06,-98.04 451.41,-101.13 457,-105 479.51,-120.59 470.36,-139.6 493,-155 504.39,-162.75 518.7,-167.34 531.75,-170.06"/>
<polygon fill="midnightblue" stroke="midnightblue" points="531.41,-173.55 541.87,-171.86 532.64,-166.66 531.41,-173.55"/>
</g>
<!-- Node3&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node3&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M401.88,-76.47C421.9,-64.02 458.92,-42.25 493,-29 499.31,-26.55 506.04,-24.32 512.78,-22.34"/>
<polygon fill="midnightblue" stroke="midnightblue" points="513.93,-25.65 522.62,-19.59 512.05,-18.91 513.93,-25.65"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" target="_top" xlink:title="Used for second hash function.">
<polygon fill="white" stroke="black" points="493,-76.5 493,-95.5 645,-95.5 645,-76.5 493,-76.5"/>
<text text-anchor="middle" x="569" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::otherHashFxn</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node3&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M457.24,-86C465.5,-86 474.01,-86 482.45,-86"/>
<polygon fill="midnightblue" stroke="midnightblue" points="482.71,-89.5 492.71,-86 482.71,-82.5 482.71,-89.5"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="503,-38.5 503,-57.5 635,-57.5 635,-38.5 503,-38.5"/>
<text text-anchor="middle" x="569" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::putProber</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node3&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M432.67,-76.41C456.99,-71.31 487.08,-64.99 512.71,-59.61"/>
<polygon fill="midnightblue" stroke="midnightblue" points="513.59,-63 522.65,-57.52 512.15,-56.15 513.59,-63"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="503,-115 503,-145 635,-145 635,-115 503,-115"/>
<text text-anchor="start" x="511" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::searching</text>
<text text-anchor="middle" x="569" y="-122" font-family="Helvetica,sans-Serif" font-size="10.00">Prober</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node8 -->
<g id="edge7" class="edge">
<title>Node3&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M426.27,-95.55C446.74,-100.52 472.43,-106.77 496.29,-112.57"/>
<polygon fill="midnightblue" stroke="midnightblue" points="495.48,-115.97 506.03,-114.93 497.14,-109.17 495.48,-115.97"/>
</g>
<!-- Node9&#45;&gt;Node2 -->
<g id="edge9" class="edge">
<title>Node9&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M326.36,-130.49C312.06,-130.81 296.71,-130.83 282.23,-130.57"/>
<polygon fill="midnightblue" stroke="midnightblue" points="281.94,-127.06 271.87,-130.33 281.78,-134.06 281.94,-127.06"/>
</g>
<!-- Node9&#45;&gt;Node4 -->
<g id="edge10" class="edge">
<title>Node9&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M418.45,-133.53C439.5,-139.82 467.84,-148.14 493,-155 505.65,-158.45 519.57,-162.04 531.94,-165.15"/>
<polygon fill="midnightblue" stroke="midnightblue" points="531.36,-168.61 541.91,-167.64 533.05,-161.82 531.36,-168.61"/>
</g>
<!-- Node10&#45;&gt;Node4 -->
<g id="edge12" class="edge">
<title>Node10&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M279.01,-195.56C351.45,-190.16 471.52,-181.2 531.52,-176.72"/>
<polygon fill="midnightblue" stroke="midnightblue" points="531.94,-180.2 541.65,-175.97 531.42,-173.22 531.94,-180.2"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@@ -0,0 +1,10 @@
<map id="double_hashing::rehash" name="double_hashing::rehash">
<area shape="rect" id="node1" title=" " alt="" coords="5,69,164,96"/>
<area shape="rect" id="node2" href="$d0/d65/namespacedouble__hashing.html#a79a9c914a6c68275b3640303d7faad8a" title=" " alt="" coords="212,69,353,96"/>
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="704,5,776,32"/>
<area shape="rect" id="node3" href="$d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" title="Performs double hashing to resolve collisions." alt="" coords="401,81,591,108"/>
<area shape="rect" id="node5" href="$d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" title="Hash a key. Uses the STL library&#39;s std::hash() function." alt="" coords="655,56,825,83"/>
<area shape="rect" id="node6" href="$d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" title="Used for second hash function." alt="" coords="639,107,841,133"/>
<area shape="rect" id="node7" href="$d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" title=" " alt="" coords="652,157,828,184"/>
<area shape="rect" id="node8" href="$d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" title=" " alt="" coords="652,209,828,250"/>
</map>

View File

@@ -0,0 +1 @@
1151e532cad9a0045c191c151c626864

View File

@@ -0,0 +1,228 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.44.1 (20200629.0846)
-->
<!-- Title: double_hashing::rehash Pages: 1 -->
<!--zoomable 192 -->
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="text/javascript"><![CDATA[
var edges = document.getElementsByTagName('g');
if (edges && edges.length) {
for (var i=0;i<edges.length;i++) {
if (edges[i].id.substr(0,4)=='edge') {
edges[i].setAttribute('class','edge');
}
}
}
]]></script>
<defs>
<circle id="rim" cx="0" cy="0" r="7"/>
<circle id="rim2" cx="0" cy="0" r="3.5"/>
<g id="zoomPlus">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/>
</use>
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="zoomMin">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/>
</use>
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="dirArrow">
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="resetDef">
<use xlink:href="#rim2" fill="#404040">
<set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/>
</use>
</g>
</defs>
<script type="text/javascript">
var viewWidth = 635;
var viewHeight = 192;
var sectionId = 'dynsection-4';
</script>
<script xlink:href="../../svgpan.js"/>
<svg id="graph" class="graph">
<g id="viewport">
<title>double_hashing::rehash</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-187.5 631,-187.5 631,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title=" ">
<polygon fill="#bfbfbf" stroke="black" points="0,-116 0,-135 119,-135 119,-116 0,-116"/>
<text text-anchor="middle" x="59.5" y="-123" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::rehash</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a79a9c914a6c68275b3640303d7faad8a" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="155,-116 155,-135 261,-135 261,-116 155,-116"/>
<text text-anchor="middle" x="208" y="-123" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::add</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M119.24,-118.87C127.62,-118.73 136.26,-118.71 144.7,-118.82"/>
<polygon fill="midnightblue" stroke="midnightblue" points="144.8,-122.32 154.87,-119.01 144.93,-115.32 144.8,-122.32"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="524,-164 524,-183 578,-183 578,-164 524,-164"/>
<text text-anchor="middle" x="551" y="-171" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge9" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M102.18,-135.05C118.56,-138.5 137.59,-142.12 155,-144.5 286.22,-162.44 443.59,-169.8 513.48,-172.35"/>
<polygon fill="midnightblue" stroke="midnightblue" points="513.41,-175.85 523.53,-172.7 513.66,-168.85 513.41,-175.85"/>
</g>
<!-- Node2&#45;&gt;Node1 -->
<g id="edge8" class="edge">
<title>Node2&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M154.87,-131.99C146.57,-132.2 137.88,-132.28 129.28,-132.24"/>
<polygon fill="midnightblue" stroke="midnightblue" points="129.28,-128.74 119.24,-132.13 129.2,-135.74 129.28,-128.74"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" target="_top" xlink:title="Performs double hashing to resolve collisions.">
<polygon fill="white" stroke="black" points="297,-107 297,-126 439,-126 439,-107 297,-107"/>
<text text-anchor="middle" x="368" y="-114" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::doubleHash</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M261.17,-122.53C269.38,-122.06 278.02,-121.57 286.69,-121.07"/>
<polygon fill="midnightblue" stroke="midnightblue" points="287.06,-124.56 296.84,-120.5 286.66,-117.57 287.06,-124.56"/>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node3&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M393.62,-126.09C414.96,-134.21 446.77,-145.88 475,-154.5 487.55,-158.33 501.43,-162 513.81,-165.08"/>
<polygon fill="midnightblue" stroke="midnightblue" points="513.25,-168.54 523.8,-167.52 514.91,-161.74 513.25,-168.54"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" target="_top" xlink:title="Hash a key. Uses the STL library&#39;s std::hash() function.">
<polygon fill="white" stroke="black" points="487,-126 487,-145 615,-145 615,-126 487,-126"/>
<text text-anchor="middle" x="551" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::hashFxn</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node3&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M439.24,-123.87C451.5,-125.16 464.29,-126.5 476.64,-127.8"/>
<polygon fill="midnightblue" stroke="midnightblue" points="476.58,-131.31 486.89,-128.88 477.31,-124.35 476.58,-131.31"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" target="_top" xlink:title="Used for second hash function.">
<polygon fill="white" stroke="black" points="475,-88 475,-107 627,-107 627,-88 475,-88"/>
<text text-anchor="middle" x="551" y="-95" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::otherHashFxn</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node3&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M439.24,-109.13C447.59,-108.25 456.19,-107.35 464.73,-106.45"/>
<polygon fill="midnightblue" stroke="midnightblue" points="465.13,-109.93 474.71,-105.4 464.4,-102.97 465.13,-109.93"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="485,-50 485,-69 617,-69 617,-50 485,-50"/>
<text text-anchor="middle" x="551" y="-57" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::putProber</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node3&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M393.62,-106.91C414.96,-98.79 446.77,-87.12 475,-78.5 482.85,-76.1 491.24,-73.77 499.44,-71.6"/>
<polygon fill="midnightblue" stroke="midnightblue" points="500.52,-74.94 509.32,-69.05 498.76,-68.16 500.52,-74.94"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="485,-0.5 485,-30.5 617,-30.5 617,-0.5 485,-0.5"/>
<text text-anchor="start" x="493" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::searching</text>
<text text-anchor="middle" x="551" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">Prober</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node8 -->
<g id="edge7" class="edge">
<title>Node3&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M380.03,-106.85C398.53,-91.09 437.49,-59.65 475,-40.5 479.28,-38.31 483.8,-36.26 488.4,-34.34"/>
<polygon fill="midnightblue" stroke="midnightblue" points="489.91,-37.51 497.93,-30.59 487.34,-30.99 489.91,-37.51"/>
</g>
</g>
</svg>
<g id="navigator" transform="translate(0 0)" fill="#404254">
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
<g id="arrowUp" xlink:href="#dirArrow" transform="translate(30 24)" onmousedown="handlePan(0,-1)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowUp.mouseover" end="arrowUp.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowRight" xlink:href="#dirArrow" transform="rotate(90) translate(36 -43)" onmousedown="handlePan(1,0)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowRight.mouseover" end="arrowRight.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowDown" xlink:href="#dirArrow" transform="rotate(180) translate(-30 -48)" onmousedown="handlePan(0,1)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowDown.mouseover" end="arrowDown.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowLeft" xlink:href="#dirArrow" transform="rotate(270) translate(-36 17)" onmousedown="handlePan(-1,0)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowLeft.mouseover" end="arrowLeft.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
</g>
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
<g id="arrow_out" transform="scale(0.3 0.3)">
<a xlink:href="namespacedouble__hashing_af4981819aae8bc7e7beeaef02615e30d_cgraph_org.svg" target="_base">
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
<path id="arrow"
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
style="fill:#404040;"/>
</a>
</g>
</svg>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,140 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.44.1 (20200629.0846)
-->
<!-- Title: double_hashing::rehash Pages: 1 -->
<svg width="635pt" height="192pt"
viewBox="0.00 0.00 635.00 191.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 187.5)">
<title>double_hashing::rehash</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-187.5 631,-187.5 631,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title=" ">
<polygon fill="#bfbfbf" stroke="black" points="0,-116 0,-135 119,-135 119,-116 0,-116"/>
<text text-anchor="middle" x="59.5" y="-123" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::rehash</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a79a9c914a6c68275b3640303d7faad8a" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="155,-116 155,-135 261,-135 261,-116 155,-116"/>
<text text-anchor="middle" x="208" y="-123" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::add</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M119.24,-118.87C127.62,-118.73 136.26,-118.71 144.7,-118.82"/>
<polygon fill="midnightblue" stroke="midnightblue" points="144.8,-122.32 154.87,-119.01 144.93,-115.32 144.8,-122.32"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="524,-164 524,-183 578,-183 578,-164 524,-164"/>
<text text-anchor="middle" x="551" y="-171" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge9" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M102.18,-135.05C118.56,-138.5 137.59,-142.12 155,-144.5 286.22,-162.44 443.59,-169.8 513.48,-172.35"/>
<polygon fill="midnightblue" stroke="midnightblue" points="513.41,-175.85 523.53,-172.7 513.66,-168.85 513.41,-175.85"/>
</g>
<!-- Node2&#45;&gt;Node1 -->
<g id="edge8" class="edge">
<title>Node2&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M154.87,-131.99C146.57,-132.2 137.88,-132.28 129.28,-132.24"/>
<polygon fill="midnightblue" stroke="midnightblue" points="129.28,-128.74 119.24,-132.13 129.2,-135.74 129.28,-128.74"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a8f8ff4fb018e1bb32d67d8a1885d3200" target="_top" xlink:title="Performs double hashing to resolve collisions.">
<polygon fill="white" stroke="black" points="297,-107 297,-126 439,-126 439,-107 297,-107"/>
<text text-anchor="middle" x="368" y="-114" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::doubleHash</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M261.17,-122.53C269.38,-122.06 278.02,-121.57 286.69,-121.07"/>
<polygon fill="midnightblue" stroke="midnightblue" points="287.06,-124.56 296.84,-120.5 286.66,-117.57 287.06,-124.56"/>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node3&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M393.62,-126.09C414.96,-134.21 446.77,-145.88 475,-154.5 487.55,-158.33 501.43,-162 513.81,-165.08"/>
<polygon fill="midnightblue" stroke="midnightblue" points="513.25,-168.54 523.8,-167.52 514.91,-161.74 513.25,-168.54"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a0d90726ed1de7b3d2ae261baed048003" target="_top" xlink:title="Hash a key. Uses the STL library&#39;s std::hash() function.">
<polygon fill="white" stroke="black" points="487,-126 487,-145 615,-145 615,-126 487,-126"/>
<text text-anchor="middle" x="551" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::hashFxn</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node3&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M439.24,-123.87C451.5,-125.16 464.29,-126.5 476.64,-127.8"/>
<polygon fill="midnightblue" stroke="midnightblue" points="476.58,-131.31 486.89,-128.88 477.31,-124.35 476.58,-131.31"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a33968a1178289ab61445dd4000df7082" target="_top" xlink:title="Used for second hash function.">
<polygon fill="white" stroke="black" points="475,-88 475,-107 627,-107 627,-88 475,-88"/>
<text text-anchor="middle" x="551" y="-95" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::otherHashFxn</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node3&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M439.24,-109.13C447.59,-108.25 456.19,-107.35 464.73,-106.45"/>
<polygon fill="midnightblue" stroke="midnightblue" points="465.13,-109.93 474.71,-105.4 464.4,-102.97 465.13,-109.93"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#ac2adfce49ac57f6dbd1778d2c1ce0d2b" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="485,-50 485,-69 617,-69 617,-50 485,-50"/>
<text text-anchor="middle" x="551" y="-57" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::putProber</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node3&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M393.62,-106.91C414.96,-98.79 446.77,-87.12 475,-78.5 482.85,-76.1 491.24,-73.77 499.44,-71.6"/>
<polygon fill="midnightblue" stroke="midnightblue" points="500.52,-74.94 509.32,-69.05 498.76,-68.16 500.52,-74.94"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../d0/d65/namespacedouble__hashing.html#a29f543e2626bad58907661e1e45028a6" target="_top" xlink:title=" ">
<polygon fill="white" stroke="black" points="485,-0.5 485,-30.5 617,-30.5 617,-0.5 485,-0.5"/>
<text text-anchor="start" x="493" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">double_hashing::searching</text>
<text text-anchor="middle" x="551" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">Prober</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node8 -->
<g id="edge7" class="edge">
<title>Node3&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M380.03,-106.85C398.53,-91.09 437.49,-59.65 475,-40.5 479.28,-38.31 483.8,-36.26 488.4,-34.34"/>
<polygon fill="midnightblue" stroke="midnightblue" points="489.91,-37.51 497.93,-30.59 487.34,-30.99 489.91,-37.51"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.1 KiB