mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-07-11 22:46:11 +08:00
Documentation for 341ed50da8
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<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.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: others::postfix_expression::Stack Class Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<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"],
|
||||
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>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C++
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C++.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @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&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d5/d8a/classothers_1_1postfix__expression_1_1_stack.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -93,33 +93,26 @@ $(document).ready(function(){initNavTree('d5/d8a/classothers_1_1postfix__express
|
||||
<div class="summary">
|
||||
<a href="#pub-attribs">Public Attributes</a> |
|
||||
<a href="../../d3/d9f/classothers_1_1postfix__expression_1_1_stack-members.html">List of all members</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">others::postfix_expression::Stack Class Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">others::postfix_expression::Stack Class Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Creates an array to be used as stack for storing values.
|
||||
<a href="../../d5/d8a/classothers_1_1postfix__expression_1_1_stack.html#details">More...</a></p>
|
||||
<div class="dynheader">
|
||||
Collaboration diagram for others::postfix_expression::Stack:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../de/d8e/classothers_1_1postfix__expression_1_1_stack__coll__graph.svg" width="188" height="142"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
|
||||
Public Attributes</h2></td></tr>
|
||||
<tr class="memitem:af06360122e20ce2ba32c574a27a20ba1"><td class="memItemLeft" align="right" valign="top"><a id="af06360122e20ce2ba32c574a27a20ba1"></a>
|
||||
<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>< float, 20 > </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d8a/classothers_1_1postfix__expression_1_1_stack.html#af06360122e20ce2ba32c574a27a20ba1">stack</a> {}</td></tr>
|
||||
<tr class="memitem:af06360122e20ce2ba32c574a27a20ba1"><td class="memItemLeft" align="right" valign="top"><a id="af06360122e20ce2ba32c574a27a20ba1" name="af06360122e20ce2ba32c574a27a20ba1"></a>
|
||||
<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>< float, 20 > </td><td class="memItemRight" valign="bottom"><b>stack</b> {}</td></tr>
|
||||
<tr class="memdesc:af06360122e20ce2ba32c574a27a20ba1"><td class="mdescLeft"> </td><td class="mdescRight">Array which will be used to store numbers in the input. <br /></td></tr>
|
||||
<tr class="separator:af06360122e20ce2ba32c574a27a20ba1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6ae98710503b894b843d01cb69d5490c"><td class="memItemLeft" align="right" valign="top"><a id="a6ae98710503b894b843d01cb69d5490c"></a>
|
||||
int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d8a/classothers_1_1postfix__expression_1_1_stack.html#a6ae98710503b894b843d01cb69d5490c">stackTop</a> = -1</td></tr>
|
||||
<tr class="memitem:a6ae98710503b894b843d01cb69d5490c"><td class="memItemLeft" align="right" valign="top"><a id="a6ae98710503b894b843d01cb69d5490c" name="a6ae98710503b894b843d01cb69d5490c"></a>
|
||||
int </td><td class="memItemRight" valign="bottom"><b>stackTop</b> = -1</td></tr>
|
||||
<tr class="memdesc:a6ae98710503b894b843d01cb69d5490c"><td class="mdescLeft"> </td><td class="mdescRight">Represents the index of the last value added to array. -1 means array is empty. <br /></td></tr>
|
||||
<tr class="separator:a6ae98710503b894b843d01cb69d5490c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Creates an array to be used as stack for storing values. </p>
|
||||
<div class="textblock"><p >Creates an array to be used as stack for storing values. </p>
|
||||
</div><hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li>others/<a class="el" href="../../d7/d75/postfix__evaluation_8cpp.html">postfix_evaluation.cpp</a></li>
|
||||
</ul>
|
||||
@@ -129,7 +122,7 @@ int </td><td class="memItemRight" valign="bottom"><a class="el" href="../..
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../d0/d6f/namespaceothers.html">others</a></li><li class="navelem"><b>postfix_expression</b></li><li class="navelem"><a class="el" href="../../d5/d8a/classothers_1_1postfix__expression_1_1_stack.html">Stack</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<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.9.1"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: data_structures/trie_using_hashmap.cpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -17,9 +17,9 @@
|
||||
<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"],
|
||||
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>
|
||||
@@ -32,8 +32,7 @@
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Algorithms_in_C++
|
||||
 <span id="projectnumber">1.0.0</span>
|
||||
<div id="projectname">Algorithms_in_C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C++.</div>
|
||||
</td>
|
||||
@@ -42,21 +41,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @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&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
@@ -70,7 +70,7 @@ $(function() {
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d5/d8a/trie__using__hashmap_8cpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
@@ -94,12 +94,11 @@ $(document).ready(function(){initNavTree('d5/d8a/trie__using__hashmap_8cpp.html'
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">trie_using_hashmap.cpp File Reference</div> </div>
|
||||
<div class="headertitle"><div class="title">trie_using_hashmap.cpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Implementation of <a href="https://en.wikipedia.org/wiki/Trie">Trie</a> data structure using HashMap for different characters and method for predicting words based on prefix.
|
||||
<p>Implementation of <a href="https://en.wikipedia.org/wiki/Trie" target="_blank">Trie</a> data structure using HashMap for different characters and method for predicting words based on prefix.
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <cassert></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
@@ -114,7 +113,7 @@ Include dependency graph for trie_using_hashmap.cpp:</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html">data_structures::trie_using_hashmap::Trie</a></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html" title="Trie class, implementation of trie using hashmap in each trie node for all the characters of char16_t...">Trie</a> class, implementation of trie using hashmap in each trie node for all the characters of char16_t(UTF-16)type with methods to insert, delete, search, start with and to recommend words based on a given prefix. <a href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#details">More...</a><br /></td></tr>
|
||||
@@ -123,16 +122,16 @@ Classes</h2></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">struct representing a trie node. <a href="../../d5/d12/structdata__structures_1_1trie__using__hashmap_1_1_trie_1_1_node.html#details">More...</a><br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:d5/d3c/namespacedata__structures"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d3c/namespacedata__structures.html">data_structures</a></td></tr>
|
||||
<tr class="memitem:d5/d3c/namespacedata__structures"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d3c/namespacedata__structures.html">data_structures</a></td></tr>
|
||||
<tr class="memdesc:d5/d3c/namespacedata__structures"><td class="mdescLeft"> </td><td class="mdescRight">Data Structures algorithms. <br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d7/d0a/namespacetrie__using__hashmap"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d0a/namespacetrie__using__hashmap.html">trie_using_hashmap</a></td></tr>
|
||||
<tr class="memdesc:d7/d0a/namespacetrie__using__hashmap"><td class="mdescLeft"> </td><td class="mdescRight">Functions for <a href="https://en.wikipedia.org/wiki/Trie">Trie</a> data structure using hashmap implementation. <br /></td></tr>
|
||||
<tr class="memitem:d7/d0a/namespacetrie__using__hashmap"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d0a/namespacetrie__using__hashmap.html">trie_using_hashmap</a></td></tr>
|
||||
<tr class="memdesc:d7/d0a/namespacetrie__using__hashmap"><td class="mdescLeft"> </td><td class="mdescRight">Functions for <a href="https://en.wikipedia.org/wiki/Trie" target="_blank">Trie</a> data structure using hashmap implementation. <br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d8a/trie__using__hashmap_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
|
||||
<tr class="memdesc:aa8dca7b867074164d5f45b0f3851269d"><td class="mdescLeft"> </td><td class="mdescRight">Self-test implementations. <a href="../../d5/d8a/trie__using__hashmap_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">More...</a><br /></td></tr>
|
||||
@@ -142,11 +141,11 @@ Functions</h2></td></tr>
|
||||
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Implementation of <a href="https://en.wikipedia.org/wiki/Trie">Trie</a> data structure using HashMap for different characters and method for predicting words based on prefix. </p>
|
||||
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/bharath000">Venkata Bharath</a></dd></dl>
|
||||
<div class="textblock"><p >Implementation of <a href="https://en.wikipedia.org/wiki/Trie" target="_blank">Trie</a> data structure using HashMap for different characters and method for predicting words based on prefix. </p>
|
||||
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/bharath000" target="_blank">Venkata Bharath</a></dd></dl>
|
||||
<p>The <a class="el" href="../../dd/d2f/class_trie.html">Trie</a> data structure is implemented using unordered map to use memory optimally, predict_words method is developed to recommend words based on a given prefix along with other methods insert, delete, search, startwith in trie. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="../../dc/d93/trie__modern_8cpp.html" title="A basic implementation of trie class to store only lower-case strings.">trie_modern.cpp</a> for difference </dd></dl>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -164,10 +163,10 @@ Functions</h2></td></tr>
|
||||
|
||||
<p>Main function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  {</div>
|
||||
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <a class="code" href="../../d5/d8a/trie__using__hashmap_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// run self-test implementaions</span></div>
|
||||
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span> {</div>
|
||||
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> <a class="code hl_function" href="../../d5/d8a/trie__using__hashmap_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// run self-test implementaions</span></div>
|
||||
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span>}</div>
|
||||
<div class="ttc" id="atrie__using__hashmap_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="../../d5/d8a/trie__using__hashmap_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition:</b> trie_using_hashmap.cpp:221</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
@@ -178,7 +177,7 @@ Here is the call graph for this function:</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aa8dca7b867074164d5f45b0f3851269d"></a>
|
||||
<a id="aa8dca7b867074164d5f45b0f3851269d" name="aa8dca7b867074164d5f45b0f3851269d"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa8dca7b867074164d5f45b0f3851269d">◆ </a></span>test()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
@@ -203,129 +202,129 @@ Here is the call graph for this function:</div>
|
||||
|
||||
<p>Self-test implementations. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  {</div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html">data_structures::trie_using_hashmap::Trie</a> obj;</div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="comment">// Inserting data into trie using the insert</span></div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="comment">// method and testing it with search method</span></div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"app"</span>);</div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"abscond"</span>);</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"about"</span>);</div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"apps"</span>);</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"apen"</span>);</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"apples"</span>);</div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"apple"</span>);</div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"approach"</span>);</div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"bus"</span>);</div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"buses"</span>);</div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"Apple"</span>);</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"Bounce"</span>);</div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  </div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  assert(!obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"appy"</span>));</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"appy is not a word in trie"</span> << <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="l00240"></a><span class="lineno"> 240</span>  </div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  assert(!obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"car"</span>));</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"car is not a word in trie"</span> << <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="l00243"></a><span class="lineno"> 243</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"app"</span>));</div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"apple"</span>));</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"apples"</span>));</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"apps"</span>));</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"apen"</span>));</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"approach"</span>));</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"about"</span>));</div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"abscond"</span>));</div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"bus"</span>));</div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"buses"</span>));</div>
|
||||
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"Bounce"</span>));</div>
|
||||
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"Apple"</span>));</div>
|
||||
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  </div>
|
||||
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All the Inserted words are present in the trie"</span> << <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="l00257"></a><span class="lineno"> 257</span>  </div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="comment">// test for startwith prefix method</span></div>
|
||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  assert(!obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"approachs"</span>));</div>
|
||||
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"approach"</span>));</div>
|
||||
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"about"</span>));</div>
|
||||
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  assert(!obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"appy"</span>));</div>
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"abscond"</span>));</div>
|
||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"bus"</span>));</div>
|
||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"buses"</span>));</div>
|
||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"Bounce"</span>));</div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"Apple"</span>));</div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"abs"</span>));</div>
|
||||
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"b"</span>));</div>
|
||||
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"bus"</span>));</div>
|
||||
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"Bo"</span>));</div>
|
||||
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"A"</span>));</div>
|
||||
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  assert(!obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"Ca"</span>));</div>
|
||||
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  </div>
|
||||
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  assert(!obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"C"</span>));</div>
|
||||
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  </div>
|
||||
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All the tests passed for startwith method"</span> << <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="l00278"></a><span class="lineno"> 278</span>  </div>
|
||||
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="comment">// test for predict_words/recommendation of words based on a given prefix</span></div>
|
||||
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  </div>
|
||||
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::string></a> pred_words = obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17">predict_words</a>(<span class="stringliteral">"a"</span>);</div>
|
||||
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  </div>
|
||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& str : obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17">predict_words</a>(<span class="stringliteral">"a"</span>)) {</div>
|
||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << str << <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="l00285"></a><span class="lineno"> 285</span>  }</div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  assert(pred_words.<a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>() == 8);</div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"Returned all words that start with prefix a "</span> << <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="l00288"></a><span class="lineno"> 288</span>  pred_words = obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17">predict_words</a>(<span class="stringliteral">"app"</span>);</div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  </div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& str : pred_words) {</div>
|
||||
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << str << <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="l00292"></a><span class="lineno"> 292</span>  }</div>
|
||||
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  </div>
|
||||
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  assert(pred_words.size() == 5);</div>
|
||||
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"Returned all words that start with prefix app "</span> << <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="l00296"></a><span class="lineno"> 296</span>  pred_words = obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17">predict_words</a>(<span class="stringliteral">"A"</span>);</div>
|
||||
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  </div>
|
||||
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& str : pred_words) {</div>
|
||||
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << str << <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="l00300"></a><span class="lineno"> 300</span>  }</div>
|
||||
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  </div>
|
||||
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  assert(pred_words.size() == 1);</div>
|
||||
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"Returned all words that start with prefix A "</span> << <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="l00304"></a><span class="lineno"> 304</span>  pred_words = obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17">predict_words</a>(<span class="stringliteral">"bu"</span>);</div>
|
||||
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  </div>
|
||||
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& str : pred_words) {</div>
|
||||
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << str << <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="l00308"></a><span class="lineno"> 308</span>  }</div>
|
||||
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  </div>
|
||||
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  assert(pred_words.size() == 2);</div>
|
||||
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"Returned all words that start with prefix bu "</span> << <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="l00312"></a><span class="lineno"> 312</span>  </div>
|
||||
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="comment">// tests for delete method</span></div>
|
||||
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  </div>
|
||||
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ac0bf3d6791cba144b3f539835d835e75">delete_word</a>(<span class="stringliteral">"app"</span>);</div>
|
||||
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  assert(!obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"app"</span>));</div>
|
||||
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"word app is deleted sucessful"</span> << <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="l00318"></a><span class="lineno"> 318</span>  </div>
|
||||
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  pred_words = obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17">predict_words</a>(<span class="stringliteral">"app"</span>);</div>
|
||||
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& str : pred_words) {</div>
|
||||
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << str << <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="l00322"></a><span class="lineno"> 322</span>  }</div>
|
||||
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  assert(pred_words.size() == 4);</div>
|
||||
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"app is deleted sucessful"</span> << <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="l00325"></a><span class="lineno"> 325</span>  </div>
|
||||
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="comment">// test case for Chinese language</span></div>
|
||||
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  </div>
|
||||
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"苹果"</span>);</div>
|
||||
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  assert(obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"苹"</span>));</div>
|
||||
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  pred_words = obj.<a class="code" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17">predict_words</a>(<span class="stringliteral">"h"</span>);</div>
|
||||
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  </div>
|
||||
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  assert(pred_words.size() == 0);</div>
|
||||
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"No word starts with prefix h in trie"</span> << <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="l00334"></a><span class="lineno"> 334</span>  </div>
|
||||
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All tests passed"</span> << <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="l00336"></a><span class="lineno"> 336</span> }</div>
|
||||
<div class="fragment"><div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> {</div>
|
||||
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> <a class="code hl_class" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html">data_structures::trie_using_hashmap::Trie</a> obj;</div>
|
||||
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <span class="comment">// Inserting data into trie using the insert</span></div>
|
||||
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> <span class="comment">// method and testing it with search method</span></div>
|
||||
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"app"</span>);</div>
|
||||
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"abscond"</span>);</div>
|
||||
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"about"</span>);</div>
|
||||
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"apps"</span>);</div>
|
||||
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"apen"</span>);</div>
|
||||
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"apples"</span>);</div>
|
||||
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"apple"</span>);</div>
|
||||
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"approach"</span>);</div>
|
||||
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"bus"</span>);</div>
|
||||
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"buses"</span>);</div>
|
||||
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"Apple"</span>);</div>
|
||||
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"Bounce"</span>);</div>
|
||||
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> </div>
|
||||
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> assert(!obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"appy"</span>));</div>
|
||||
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"appy is not a word in trie"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> </div>
|
||||
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> assert(!obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"car"</span>));</div>
|
||||
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"car is not a word in trie"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"app"</span>));</div>
|
||||
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"apple"</span>));</div>
|
||||
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"apples"</span>));</div>
|
||||
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"apps"</span>));</div>
|
||||
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"apen"</span>));</div>
|
||||
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"approach"</span>));</div>
|
||||
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"about"</span>));</div>
|
||||
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"abscond"</span>));</div>
|
||||
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"bus"</span>));</div>
|
||||
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"buses"</span>));</div>
|
||||
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"Bounce"</span>));</div>
|
||||
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"Apple"</span>));</div>
|
||||
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> </div>
|
||||
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All the Inserted words are present in the trie"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> </div>
|
||||
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> <span class="comment">// test for startwith prefix method</span></div>
|
||||
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> assert(!obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"approachs"</span>));</div>
|
||||
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"approach"</span>));</div>
|
||||
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"about"</span>));</div>
|
||||
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> assert(!obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"appy"</span>));</div>
|
||||
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"abscond"</span>));</div>
|
||||
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"bus"</span>));</div>
|
||||
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"buses"</span>));</div>
|
||||
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"Bounce"</span>));</div>
|
||||
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"Apple"</span>));</div>
|
||||
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"abs"</span>));</div>
|
||||
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"b"</span>));</div>
|
||||
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"bus"</span>));</div>
|
||||
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"Bo"</span>));</div>
|
||||
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"A"</span>));</div>
|
||||
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> assert(!obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"Ca"</span>));</div>
|
||||
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> </div>
|
||||
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> assert(!obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"C"</span>));</div>
|
||||
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> </div>
|
||||
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All the tests passed for startwith method"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> </div>
|
||||
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <span class="comment">// test for predict_words/recommendation of words based on a given prefix</span></div>
|
||||
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> </div>
|
||||
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::string></a> pred_words = obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4">predict_words</a>(<span class="stringliteral">"a"</span>);</div>
|
||||
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> </div>
|
||||
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& str : obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4">predict_words</a>(<span class="stringliteral">"a"</span>)) {</div>
|
||||
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << str << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> }</div>
|
||||
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> assert(pred_words.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>() == 8);</div>
|
||||
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"Returned all words that start with prefix a "</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> pred_words = obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4">predict_words</a>(<span class="stringliteral">"app"</span>);</div>
|
||||
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> </div>
|
||||
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& str : pred_words) {</div>
|
||||
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << str << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> }</div>
|
||||
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> </div>
|
||||
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> assert(pred_words.size() == 5);</div>
|
||||
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"Returned all words that start with prefix app "</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> pred_words = obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4">predict_words</a>(<span class="stringliteral">"A"</span>);</div>
|
||||
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> </div>
|
||||
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& str : pred_words) {</div>
|
||||
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << str << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> }</div>
|
||||
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> </div>
|
||||
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> assert(pred_words.size() == 1);</div>
|
||||
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"Returned all words that start with prefix A "</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> pred_words = obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4">predict_words</a>(<span class="stringliteral">"bu"</span>);</div>
|
||||
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> </div>
|
||||
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& str : pred_words) {</div>
|
||||
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << str << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span> }</div>
|
||||
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> </div>
|
||||
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> assert(pred_words.size() == 2);</div>
|
||||
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"Returned all words that start with prefix bu "</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span> </div>
|
||||
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> <span class="comment">// tests for delete method</span></div>
|
||||
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> </div>
|
||||
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ac0bf3d6791cba144b3f539835d835e75">delete_word</a>(<span class="stringliteral">"app"</span>);</div>
|
||||
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> assert(!obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">search</a>(<span class="stringliteral">"app"</span>));</div>
|
||||
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"word app is deleted sucessful"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> </div>
|
||||
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> pred_words = obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4">predict_words</a>(<span class="stringliteral">"app"</span>);</div>
|
||||
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>& str : pred_words) {</div>
|
||||
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << str << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> }</div>
|
||||
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> assert(pred_words.size() == 4);</div>
|
||||
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"app is deleted sucessful"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> </div>
|
||||
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> <span class="comment">// test case for Chinese language</span></div>
|
||||
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> </div>
|
||||
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">insert</a>(<span class="stringliteral">"苹果"</span>);</div>
|
||||
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> assert(obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">startwith</a>(<span class="stringliteral">"苹"</span>));</div>
|
||||
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> pred_words = obj.<a class="code hl_function" href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4">predict_words</a>(<span class="stringliteral">"h"</span>);</div>
|
||||
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> </div>
|
||||
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> assert(pred_words.size() == 0);</div>
|
||||
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"No word starts with prefix h in trie"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> </div>
|
||||
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All tests passed"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span>}</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="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1trie__using__hashmap_1_1_trie_html"><div class="ttname"><a href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html">data_structures::trie_using_hashmap::Trie</a></div><div class="ttdoc">Trie class, implementation of trie using hashmap in each trie node for all the characters of char16_t...</div><div class="ttdef"><b>Definition:</b> trie_using_hashmap.cpp:39</div></div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1trie__using__hashmap_1_1_trie_html_abcae0a4456e7f583ce716e3ef466dfd2"><div class="ttname"><a href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2">data_structures::trie_using_hashmap::Trie::insert</a></div><div class="ttdeci">void insert(const std::string &word)</div><div class="ttdoc">insert the string into the trie</div><div class="ttdef"><b>Definition:</b> trie_using_hashmap.cpp:62</div></div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1trie__using__hashmap_1_1_trie_html_ac0bf3d6791cba144b3f539835d835e75"><div class="ttname"><a href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ac0bf3d6791cba144b3f539835d835e75">data_structures::trie_using_hashmap::Trie::delete_word</a></div><div class="ttdeci">void delete_word(std::string word)</div><div class="ttdoc">delete a word/string from a trie</div><div class="ttdef"><b>Definition:</b> trie_using_hashmap.cpp:122</div></div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1trie__using__hashmap_1_1_trie_html_acbfd4a79adb242022fa2829740328c17"><div class="ttname"><a href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17">data_structures::trie_using_hashmap::Trie::predict_words</a></div><div class="ttdeci">std::vector< std::string > predict_words(const std::string &prefix)</div><div class="ttdoc">predict/recommend a word that starts with a given prefix</div><div class="ttdef"><b>Definition:</b> trie_using_hashmap.cpp:188</div></div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1trie__using__hashmap_1_1_trie_html_ad71eb24207c28b546631802dba97310f"><div class="ttname"><a href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f">data_structures::trie_using_hashmap::Trie::search</a></div><div class="ttdeci">bool search(const std::string &word)</div><div class="ttdoc">search a word/string inside the trie</div><div class="ttdef"><b>Definition:</b> trie_using_hashmap.cpp:82</div></div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1trie__using__hashmap_1_1_trie_html_ae15fdc7f2b5023992d87a711d78566c4"><div class="ttname"><a href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4">data_structures::trie_using_hashmap::Trie::predict_words</a></div><div class="ttdeci">std::vector< std::string > predict_words(const std::string &prefix)</div><div class="ttdoc">predict/recommend a word that starts with a given prefix</div><div class="ttdef"><b>Definition:</b> trie_using_hashmap.cpp:188</div></div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1trie__using__hashmap_1_1_trie_html_af3aee573fbabd2c1510c0f74f842dd17"><div class="ttname"><a href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17">data_structures::trie_using_hashmap::Trie::startwith</a></div><div class="ttdeci">bool startwith(const std::string &prefix)</div><div class="ttdoc">search a word/string that starts with a given prefix</div><div class="ttdef"><b>Definition:</b> trie_using_hashmap.cpp:107</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="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/size.html">std::vector::size</a></div><div class="ttdeci">T size(T... args)</div></div>
|
||||
@@ -333,7 +332,7 @@ Here is the call graph for this function:</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="../../d5/d8a/trie__using__hashmap_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width="662" height="563"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d5/d8a/trie__using__hashmap_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width="662" height="570"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -345,7 +344,7 @@ Here is the call graph for this function:</div>
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_2e746e9d06bf2d8ff842208bcc6ebcfc.html">data_structures</a></li><li class="navelem"><a class="el" href="../../d5/d8a/trie__using__hashmap_8cpp.html">trie_using_hashmap.cpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
var trie__using__hashmap_8cpp =
|
||||
[
|
||||
[ "Trie", "d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html", "d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie" ],
|
||||
[ "Node", "d5/d12/structdata__structures_1_1trie__using__hashmap_1_1_trie_1_1_node.html", "d5/d12/structdata__structures_1_1trie__using__hashmap_1_1_trie_1_1_node" ],
|
||||
[ "data_structures::trie_using_hashmap::Trie", "d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html", "d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie" ],
|
||||
[ "data_structures::trie_using_hashmap::Trie::Node", "d5/d12/structdata__structures_1_1trie__using__hashmap_1_1_trie_1_1_node.html", "d5/d12/structdata__structures_1_1trie__using__hashmap_1_1_trie_1_1_node" ],
|
||||
[ "main", "d5/d8a/trie__using__hashmap_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
|
||||
[ "test", "d5/d8a/trie__using__hashmap_8cpp.html#aa8dca7b867074164d5f45b0f3851269d", null ]
|
||||
];
|
||||
@@ -1,17 +1,17 @@
|
||||
<map id="test" name="test">
|
||||
<area shape="rect" id="node1" title="Self-test implementations." alt="" coords="5,305,49,332"/>
|
||||
<area shape="rect" id="node2" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ac0bf3d6791cba144b3f539835d835e75" title="delete a word/string from a trie" alt="" coords="97,80,251,136"/>
|
||||
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="138,160,210,187"/>
|
||||
<area shape="rect" id="node9" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2" title="insert the string into the trie" alt="" coords="97,211,251,267"/>
|
||||
<area shape="rect" id="node10" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17" title="predict/recommend a word that starts with a given prefix" alt="" coords="97,291,251,347"/>
|
||||
<area shape="rect" id="node13" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f" title="search a word/string inside the trie" alt="" coords="97,371,251,427"/>
|
||||
<area shape="rect" id="node14" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="117,451,231,477"/>
|
||||
<area shape="rect" id="node15" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17" title="search a word/string that starts with a given prefix" alt="" coords="97,501,251,557"/>
|
||||
<area shape="rect" id="node1" title="Self-test implementations." alt="" coords="5,312,49,339"/>
|
||||
<area shape="rect" id="node2" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ac0bf3d6791cba144b3f539835d835e75" title="delete a word/string from a trie" alt="" coords="97,87,251,143"/>
|
||||
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="138,167,210,193"/>
|
||||
<area shape="rect" id="node9" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2" title="insert the string into the trie" alt="" coords="97,217,251,273"/>
|
||||
<area shape="rect" id="node10" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4" title="predict/recommend a word that starts with a given prefix" alt="" coords="97,297,251,353"/>
|
||||
<area shape="rect" id="node13" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f" title="search a word/string inside the trie" alt="" coords="97,377,251,433"/>
|
||||
<area shape="rect" id="node14" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="117,457,231,484"/>
|
||||
<area shape="rect" id="node15" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17" title="search a word/string that starts with a given prefix" alt="" coords="97,508,251,564"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/back.html#" title=" " alt="" coords="317,5,433,32"/>
|
||||
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/stack/pop.html#" title=" " alt="" coords="321,56,429,83"/>
|
||||
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/pop_back.html#" title=" " alt="" coords="505,176,651,203"/>
|
||||
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/pop_back.html#" title=" " alt="" coords="505,183,651,209"/>
|
||||
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/stack/push.html#" title=" " alt="" coords="318,157,433,184"/>
|
||||
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/stack/top.html#" title=" " alt="" coords="323,208,427,235"/>
|
||||
<area shape="rect" id="node11" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#a5f501b7f1240a58bc082187f22c2fe17" title="helper function to predict/recommend words that starts with a given prefix from the end of prefix's n..." alt="" coords="299,269,452,325"/>
|
||||
<area shape="rect" id="node12" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="500,284,656,311"/>
|
||||
<area shape="rect" id="node11" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#a7bbe538c8015e8ce158e7ed43f605ebd" title="helper function to predict/recommend words that starts with a given prefix from the end of prefix's n..." alt="" coords="299,288,452,344"/>
|
||||
<area shape="rect" id="node12" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="500,303,656,329"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
036d35e65a9702b1a82f192b9f754006
|
||||
e2aeb03c14efefbfa0edfc42808d894c
|
||||
@@ -1,14 +1,14 @@
|
||||
<?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.48.0 (20210717.1556)
|
||||
<!-- Generated by graphviz version 2.49.0 (20210828.1703)
|
||||
-->
|
||||
<!-- Title: test Pages: 1 -->
|
||||
<svg width="496pt" height="422pt"
|
||||
viewBox="0.00 0.00 496.00 422.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 418)">
|
||||
<svg width="496pt" height="427pt"
|
||||
viewBox="0.00 0.00 496.00 427.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 423)">
|
||||
<title>test</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-418 492,-418 492,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-423 492,-423 492,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -70,7 +70,7 @@
|
||||
<!-- Node10 -->
|
||||
<g id="node10" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_node10"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17" target="_top" xlink:title="predict/recommend a word that starts with a given prefix">
|
||||
<g id="a_node10"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4" target="_top" xlink:title="predict/recommend a word that starts with a given prefix">
|
||||
<polygon fill="white" stroke="black" points="69,-158.5 69,-199.5 184,-199.5 184,-158.5 69,-158.5"/>
|
||||
<text text-anchor="start" x="77" y="-187.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::trie</text>
|
||||
<text text-anchor="start" x="77" y="-176.5" font-family="Helvetica,sans-Serif" font-size="10.00">_using_hashmap::Trie</text>
|
||||
@@ -96,7 +96,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node13 -->
|
||||
<g id="edge13" class="edge">
|
||||
<g id="edge14" class="edge">
|
||||
<title>Node1->Node13</title>
|
||||
<path fill="none" stroke="midnightblue" d="M33.19,-169.65C43.34,-163.65 56.88,-155.74 69,-149 71.68,-147.51 74.44,-145.99 77.23,-144.47"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="79.06,-147.46 86.18,-139.62 75.72,-141.3 79.06,-147.46"/>
|
||||
@@ -111,7 +111,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node14 -->
|
||||
<g id="edge14" class="edge">
|
||||
<g id="edge15" class="edge">
|
||||
<title>Node1->Node14</title>
|
||||
<path fill="none" stroke="midnightblue" d="M20.44,-169.34C26.52,-151.01 42.15,-111.06 69,-89 71.14,-87.24 73.45,-85.65 75.86,-84.2"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="77.67,-87.2 85,-79.55 74.5,-80.96 77.67,-87.2"/>
|
||||
@@ -128,7 +128,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node15 -->
|
||||
<g id="edge15" class="edge">
|
||||
<g id="edge16" class="edge">
|
||||
<title>Node1->Node15</title>
|
||||
<path fill="none" stroke="midnightblue" d="M19.03,-169.46C23.15,-146.45 36.48,-87.15 69,-51 69.88,-50.02 70.79,-49.08 71.74,-48.15"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="74.18,-50.68 79.6,-41.57 69.69,-45.31 74.18,-50.68"/>
|
||||
@@ -137,31 +137,31 @@
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="234,-394.5 234,-413.5 321,-413.5 321,-394.5 234,-394.5"/>
|
||||
<text text-anchor="middle" x="277.5" y="-401.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::back</text>
|
||||
<polygon fill="white" stroke="black" points="234,-399.5 234,-418.5 321,-418.5 321,-399.5 234,-399.5"/>
|
||||
<text text-anchor="middle" x="277.5" y="-406.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M164.23,-357.72C180.95,-366.72 201.18,-377.01 220,-385 225.06,-387.15 230.45,-389.22 235.82,-391.16"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="234.79,-394.51 245.39,-394.49 237.1,-387.9 234.79,-394.51"/>
|
||||
<path fill="none" stroke="midnightblue" d="M160.07,-357.75C177.43,-368.27 199.4,-380.74 220,-390 224.72,-392.12 229.74,-394.14 234.78,-396.01"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="233.81,-399.38 244.4,-399.42 236.15,-392.78 233.81,-399.38"/>
|
||||
</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/container/stack/pop.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="237,-356.5 237,-375.5 318,-375.5 318,-356.5 237,-356.5"/>
|
||||
<text text-anchor="middle" x="277.5" y="-363.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::pop</text>
|
||||
<polygon fill="white" stroke="black" points="237,-361.5 237,-380.5 318,-380.5 318,-361.5 237,-361.5"/>
|
||||
<text text-anchor="middle" x="277.5" y="-368.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::pop</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M184.26,-348.05C198.15,-350.75 212.92,-353.62 226.47,-356.26"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="226.08,-359.75 236.56,-358.23 227.41,-352.88 226.08,-359.75"/>
|
||||
<path fill="none" stroke="midnightblue" d="M184.26,-349.95C198.15,-353.12 212.92,-356.49 226.47,-359.58"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="226.03,-363.07 236.56,-361.89 227.59,-356.25 226.03,-363.07"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
@@ -175,76 +175,82 @@
|
||||
<!-- Node2->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node2->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M184,-332.53C226.06,-328.45 284.64,-321.15 335,-309 355.76,-303.99 378.35,-296.09 396.12,-289.28"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="397.42,-292.53 405.46,-285.63 394.87,-286.01 397.42,-292.53"/>
|
||||
<path fill="none" stroke="midnightblue" d="M184.17,-334.93C226.31,-332.38 284.93,-326.69 335,-314 357.5,-308.3 381.75,-298.32 399.91,-290.02"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="401.75,-293.03 409.33,-285.62 398.79,-286.68 401.75,-293.03"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/stack/push.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="234.5,-280.5 234.5,-299.5 320.5,-299.5 320.5,-280.5 234.5,-280.5"/>
|
||||
<text text-anchor="middle" x="277.5" y="-287.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::push</text>
|
||||
<polygon fill="white" stroke="black" points="234.5,-285.5 234.5,-304.5 320.5,-304.5 320.5,-285.5 234.5,-285.5"/>
|
||||
<text text-anchor="middle" x="277.5" y="-292.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::push</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node2->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M184.26,-319.1C201.69,-313.6 220.5,-307.66 236.56,-302.6"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="237.68,-305.91 246.17,-299.57 235.58,-299.24 237.68,-305.91"/>
|
||||
<path fill="none" stroke="midnightblue" d="M184.26,-321C200.45,-316.44 217.83,-311.54 233.08,-307.24"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="234.1,-310.59 242.77,-304.51 232.2,-303.85 234.1,-310.59"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/stack/top.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="238.5,-242.5 238.5,-261.5 316.5,-261.5 316.5,-242.5 238.5,-242.5"/>
|
||||
<text text-anchor="middle" x="277.5" y="-249.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::top</text>
|
||||
<polygon fill="white" stroke="black" points="238.5,-247.5 238.5,-266.5 316.5,-266.5 316.5,-247.5 238.5,-247.5"/>
|
||||
<text text-anchor="middle" x="277.5" y="-254.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::top</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node2->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M169.7,-316.4C174.66,-313.46 179.54,-310.3 184,-307 202.19,-293.55 200.77,-282.92 220,-271 223.32,-268.94 226.89,-267.08 230.56,-265.4"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="231.9,-268.63 239.82,-261.58 229.24,-262.16 231.9,-268.63"/>
|
||||
<path fill="none" stroke="midnightblue" d="M168.87,-316.42C174.07,-313.43 179.23,-310.26 184,-307 201.43,-295.09 201.65,-286.45 220,-276 223.69,-273.9 227.65,-271.98 231.7,-270.24"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="233.19,-273.42 241.23,-266.52 230.64,-266.9 233.19,-273.42"/>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="node11" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_node11"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#a5f501b7f1240a58bc082187f22c2fe17" target="_top" xlink:title="helper function to predict/recommend words that starts with a given prefix from the end of prefix's n...">
|
||||
<polygon fill="white" stroke="black" points="220,-174.5 220,-215.5 335,-215.5 335,-174.5 220,-174.5"/>
|
||||
<text text-anchor="start" x="228" y="-203.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::trie</text>
|
||||
<text text-anchor="start" x="228" y="-192.5" font-family="Helvetica,sans-Serif" font-size="10.00">_using_hashmap::Trie</text>
|
||||
<text text-anchor="middle" x="277.5" y="-181.5" font-family="Helvetica,sans-Serif" font-size="10.00">::get_all_words</text>
|
||||
<g id="a_node11"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#a7bbe538c8015e8ce158e7ed43f605ebd" target="_top" xlink:title="helper function to predict/recommend words that starts with a given prefix from the end of prefix's n...">
|
||||
<polygon fill="white" stroke="black" points="220,-165.5 220,-206.5 335,-206.5 335,-165.5 220,-165.5"/>
|
||||
<text text-anchor="start" x="228" y="-194.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::trie</text>
|
||||
<text text-anchor="start" x="228" y="-183.5" font-family="Helvetica,sans-Serif" font-size="10.00">_using_hashmap::Trie</text>
|
||||
<text text-anchor="middle" x="277.5" y="-172.5" font-family="Helvetica,sans-Serif" font-size="10.00">::get_all_words</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node11 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>Node10->Node11</title>
|
||||
<path fill="none" stroke="midnightblue" d="M184.26,-185.09C192.65,-186 201.36,-186.93 209.93,-187.85"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="209.59,-191.33 219.9,-188.92 210.33,-184.37 209.59,-191.33"/>
|
||||
<path fill="none" stroke="midnightblue" d="M184.26,-181.67C192.56,-182.06 201.17,-182.46 209.65,-182.86"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="209.75,-186.37 219.9,-183.34 210.08,-179.38 209.75,-186.37"/>
|
||||
</g>
|
||||
<!-- Node11->Node5 -->
|
||||
<g id="edge11" class="edge">
|
||||
<g id="edge12" class="edge">
|
||||
<title>Node11->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M316.74,-215.65C343.29,-229.99 378,-248.73 401.65,-261.5"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="400.28,-264.74 410.74,-266.41 403.61,-258.58 400.28,-264.74"/>
|
||||
<path fill="none" stroke="midnightblue" d="M312.91,-206.65C340.68,-223.31 379.06,-246.34 403.83,-261.2"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="402.24,-264.32 412.61,-266.47 405.84,-258.32 402.24,-264.32"/>
|
||||
</g>
|
||||
<!-- Node11->Node11 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>Node11->Node11</title>
|
||||
<path fill="none" stroke="midnightblue" d="M249.93,-206.86C246.92,-216.54 256.11,-225 277.5,-225 290.87,-225 299.47,-221.7 303.31,-216.86"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="306.78,-217.32 305.07,-206.86 299.89,-216.1 306.78,-217.32"/>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="node12" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_node12"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="371,-185.5 371,-204.5 488,-204.5 488,-185.5 371,-185.5"/>
|
||||
<text text-anchor="middle" x="429.5" y="-192.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
<polygon fill="white" stroke="black" points="371,-176.5 371,-195.5 488,-195.5 488,-176.5 371,-176.5"/>
|
||||
<text text-anchor="middle" x="429.5" y="-183.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node12 -->
|
||||
<g id="edge12" class="edge">
|
||||
<g id="edge13" class="edge">
|
||||
<title>Node11->Node12</title>
|
||||
<path fill="none" stroke="midnightblue" d="M335.21,-195C343.47,-195 352.04,-195 360.49,-195"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="360.71,-198.5 370.71,-195 360.71,-191.5 360.71,-198.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M335.21,-186C343.47,-186 352.04,-186 360.49,-186"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="360.71,-189.5 370.71,-186 360.71,-182.5 360.71,-189.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@@ -1,18 +1,18 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="node1" title="Main function." alt="" coords="5,305,56,332"/>
|
||||
<area shape="rect" id="node2" href="$d5/d8a/trie__using__hashmap_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" title="Self-test implementations." alt="" coords="104,305,148,332"/>
|
||||
<area shape="rect" id="node3" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ac0bf3d6791cba144b3f539835d835e75" title="delete a word/string from a trie" alt="" coords="196,80,349,136"/>
|
||||
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="237,160,309,187"/>
|
||||
<area shape="rect" id="node10" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2" title="insert the string into the trie" alt="" coords="196,211,349,267"/>
|
||||
<area shape="rect" id="node11" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17" title="predict/recommend a word that starts with a given prefix" alt="" coords="196,291,349,347"/>
|
||||
<area shape="rect" id="node14" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f" title="search a word/string inside the trie" alt="" coords="196,371,349,427"/>
|
||||
<area shape="rect" id="node15" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="215,451,330,477"/>
|
||||
<area shape="rect" id="node16" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17" title="search a word/string that starts with a given prefix" alt="" coords="196,501,349,557"/>
|
||||
<area shape="rect" id="node1" title="Main function." alt="" coords="5,312,56,339"/>
|
||||
<area shape="rect" id="node2" href="$d5/d8a/trie__using__hashmap_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" title="Self-test implementations." alt="" coords="104,312,148,339"/>
|
||||
<area shape="rect" id="node3" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ac0bf3d6791cba144b3f539835d835e75" title="delete a word/string from a trie" alt="" coords="196,87,349,143"/>
|
||||
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="237,167,309,193"/>
|
||||
<area shape="rect" id="node10" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#abcae0a4456e7f583ce716e3ef466dfd2" title="insert the string into the trie" alt="" coords="196,217,349,273"/>
|
||||
<area shape="rect" id="node11" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4" title="predict/recommend a word that starts with a given prefix" alt="" coords="196,297,349,353"/>
|
||||
<area shape="rect" id="node14" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ad71eb24207c28b546631802dba97310f" title="search a word/string inside the trie" alt="" coords="196,377,349,433"/>
|
||||
<area shape="rect" id="node15" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="215,457,330,484"/>
|
||||
<area shape="rect" id="node16" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#af3aee573fbabd2c1510c0f74f842dd17" title="search a word/string that starts with a given prefix" alt="" coords="196,508,349,564"/>
|
||||
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/back.html#" title=" " alt="" coords="416,5,532,32"/>
|
||||
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/stack/pop.html#" title=" " alt="" coords="420,56,528,83"/>
|
||||
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/pop_back.html#" title=" " alt="" coords="604,176,749,203"/>
|
||||
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/pop_back.html#" title=" " alt="" coords="604,183,749,209"/>
|
||||
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/stack/push.html#" title=" " alt="" coords="417,157,531,184"/>
|
||||
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/stack/top.html#" title=" " alt="" coords="422,208,526,235"/>
|
||||
<area shape="rect" id="node12" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#a5f501b7f1240a58bc082187f22c2fe17" title="helper function to predict/recommend words that starts with a given prefix from the end of prefix's n..." alt="" coords="397,269,551,325"/>
|
||||
<area shape="rect" id="node13" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="599,284,755,311"/>
|
||||
<area shape="rect" id="node12" href="$d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#a7bbe538c8015e8ce158e7ed43f605ebd" title="helper function to predict/recommend words that starts with a given prefix from the end of prefix's n..." alt="" coords="397,288,551,344"/>
|
||||
<area shape="rect" id="node13" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="599,303,755,329"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
4f77aec0813f394b01ef57eea663cdba
|
||||
30186015d7a87832e4198768bf73df6d
|
||||
@@ -1,10 +1,10 @@
|
||||
<?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.48.0 (20210717.1556)
|
||||
<!-- Generated by graphviz version 2.49.0 (20210828.1703)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<!--zoomable 422 -->
|
||||
<!--zoomable 427 -->
|
||||
<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; }
|
||||
@@ -47,14 +47,14 @@ if (edges && edges.length) {
|
||||
|
||||
<script type="text/javascript">
|
||||
var viewWidth = 570;
|
||||
var viewHeight = 422;
|
||||
var viewHeight = 427;
|
||||
var sectionId = 'dynsection-1';
|
||||
</script>
|
||||
<script xlink:href="../../svgpan.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="viewport">
|
||||
<title>main</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-418 566,-418 566,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-423 566,-423 566,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -131,7 +131,7 @@ var sectionId = 'dynsection-1';
|
||||
<!-- Node11 -->
|
||||
<g id="node11" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_node11"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17" target="_top" xlink:title="predict/recommend a word that starts with a given prefix">
|
||||
<g id="a_node11"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4" target="_top" xlink:title="predict/recommend a word that starts with a given prefix">
|
||||
<polygon fill="white" stroke="black" points="143,-158.5 143,-199.5 258,-199.5 258,-158.5 143,-158.5"/>
|
||||
<text text-anchor="start" x="151" y="-187.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::trie</text>
|
||||
<text text-anchor="start" x="151" y="-176.5" font-family="Helvetica,sans-Serif" font-size="10.00">_using_hashmap::Trie</text>
|
||||
@@ -157,7 +157,7 @@ var sectionId = 'dynsection-1';
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node14 -->
|
||||
<g id="edge14" class="edge">
|
||||
<g id="edge15" class="edge">
|
||||
<title>Node2->Node14</title>
|
||||
<path fill="none" stroke="midnightblue" d="M107.19,-169.65C117.34,-163.65 130.88,-155.74 143,-149 145.68,-147.51 148.44,-145.99 151.23,-144.47"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="153.06,-147.46 160.18,-139.62 149.72,-141.3 153.06,-147.46"/>
|
||||
@@ -172,7 +172,7 @@ var sectionId = 'dynsection-1';
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node15 -->
|
||||
<g id="edge15" class="edge">
|
||||
<g id="edge16" class="edge">
|
||||
<title>Node2->Node15</title>
|
||||
<path fill="none" stroke="midnightblue" d="M94.44,-169.34C100.52,-151.01 116.15,-111.06 143,-89 145.14,-87.24 147.45,-85.65 149.86,-84.2"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="151.67,-87.2 159,-79.55 148.5,-80.96 151.67,-87.2"/>
|
||||
@@ -189,7 +189,7 @@ var sectionId = 'dynsection-1';
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node16 -->
|
||||
<g id="edge16" class="edge">
|
||||
<g id="edge17" class="edge">
|
||||
<title>Node2->Node16</title>
|
||||
<path fill="none" stroke="midnightblue" d="M93.03,-169.46C97.15,-146.45 110.48,-87.15 143,-51 143.88,-50.02 144.79,-49.08 145.74,-48.15"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="148.18,-50.68 153.6,-41.57 143.69,-45.31 148.18,-50.68"/>
|
||||
@@ -198,31 +198,31 @@ var sectionId = 'dynsection-1';
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="308,-394.5 308,-413.5 395,-413.5 395,-394.5 308,-394.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-401.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::back</text>
|
||||
<polygon fill="white" stroke="black" points="308,-399.5 308,-418.5 395,-418.5 395,-399.5 308,-399.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-406.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M238.23,-357.72C254.95,-366.72 275.18,-377.01 294,-385 299.06,-387.15 304.45,-389.22 309.82,-391.16"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="308.79,-394.51 319.39,-394.49 311.1,-387.9 308.79,-394.51"/>
|
||||
<path fill="none" stroke="midnightblue" d="M234.07,-357.75C251.43,-368.27 273.4,-380.74 294,-390 298.72,-392.12 303.74,-394.14 308.78,-396.01"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="307.81,-399.38 318.4,-399.42 310.15,-392.78 307.81,-399.38"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/stack/pop.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="311,-356.5 311,-375.5 392,-375.5 392,-356.5 311,-356.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-363.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::pop</text>
|
||||
<polygon fill="white" stroke="black" points="311,-361.5 311,-380.5 392,-380.5 392,-361.5 311,-361.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-368.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::pop</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-348.05C272.15,-350.75 286.92,-353.62 300.47,-356.26"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="300.08,-359.75 310.56,-358.23 301.41,-352.88 300.08,-359.75"/>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-349.95C272.15,-353.12 286.92,-356.49 300.47,-359.58"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="300.03,-363.07 310.56,-361.89 301.59,-356.25 300.03,-363.07"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
@@ -236,76 +236,82 @@ var sectionId = 'dynsection-1';
|
||||
<!-- Node3->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node3->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M258,-332.53C300.06,-328.45 358.64,-321.15 409,-309 429.76,-303.99 452.35,-296.09 470.12,-289.28"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="471.42,-292.53 479.46,-285.63 468.87,-286.01 471.42,-292.53"/>
|
||||
<path fill="none" stroke="midnightblue" d="M258.17,-334.93C300.31,-332.38 358.93,-326.69 409,-314 431.5,-308.3 455.75,-298.32 473.91,-290.02"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="475.75,-293.03 483.33,-285.62 472.79,-286.68 475.75,-293.03"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/stack/push.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="308.5,-280.5 308.5,-299.5 394.5,-299.5 394.5,-280.5 308.5,-280.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-287.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::push</text>
|
||||
<polygon fill="white" stroke="black" points="308.5,-285.5 308.5,-304.5 394.5,-304.5 394.5,-285.5 308.5,-285.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-292.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::push</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node3->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-319.1C275.69,-313.6 294.5,-307.66 310.56,-302.6"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="311.68,-305.91 320.17,-299.57 309.58,-299.24 311.68,-305.91"/>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-321C274.45,-316.44 291.83,-311.54 307.08,-307.24"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="308.1,-310.59 316.77,-304.51 306.2,-303.85 308.1,-310.59"/>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="node8" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/stack/top.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="312.5,-242.5 312.5,-261.5 390.5,-261.5 390.5,-242.5 312.5,-242.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-249.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::top</text>
|
||||
<polygon fill="white" stroke="black" points="312.5,-247.5 312.5,-266.5 390.5,-266.5 390.5,-247.5 312.5,-247.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-254.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::top</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node8 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node3->Node8</title>
|
||||
<path fill="none" stroke="midnightblue" d="M243.7,-316.4C248.66,-313.46 253.54,-310.3 258,-307 276.19,-293.55 274.77,-282.92 294,-271 297.32,-268.94 300.89,-267.08 304.56,-265.4"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="305.9,-268.63 313.82,-261.58 303.24,-262.16 305.9,-268.63"/>
|
||||
<path fill="none" stroke="midnightblue" d="M242.87,-316.42C248.07,-313.43 253.23,-310.26 258,-307 275.43,-295.09 275.65,-286.45 294,-276 297.69,-273.9 301.65,-271.98 305.7,-270.24"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="307.19,-273.42 315.23,-266.52 304.64,-266.9 307.19,-273.42"/>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="node12" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_node12"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#a5f501b7f1240a58bc082187f22c2fe17" target="_top" xlink:title="helper function to predict/recommend words that starts with a given prefix from the end of prefix's n...">
|
||||
<polygon fill="white" stroke="black" points="294,-174.5 294,-215.5 409,-215.5 409,-174.5 294,-174.5"/>
|
||||
<text text-anchor="start" x="302" y="-203.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::trie</text>
|
||||
<text text-anchor="start" x="302" y="-192.5" font-family="Helvetica,sans-Serif" font-size="10.00">_using_hashmap::Trie</text>
|
||||
<text text-anchor="middle" x="351.5" y="-181.5" font-family="Helvetica,sans-Serif" font-size="10.00">::get_all_words</text>
|
||||
<g id="a_node12"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#a7bbe538c8015e8ce158e7ed43f605ebd" target="_top" xlink:title="helper function to predict/recommend words that starts with a given prefix from the end of prefix's n...">
|
||||
<polygon fill="white" stroke="black" points="294,-165.5 294,-206.5 409,-206.5 409,-165.5 294,-165.5"/>
|
||||
<text text-anchor="start" x="302" y="-194.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::trie</text>
|
||||
<text text-anchor="start" x="302" y="-183.5" font-family="Helvetica,sans-Serif" font-size="10.00">_using_hashmap::Trie</text>
|
||||
<text text-anchor="middle" x="351.5" y="-172.5" font-family="Helvetica,sans-Serif" font-size="10.00">::get_all_words</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node12 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>Node11->Node12</title>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-185.09C266.65,-186 275.36,-186.93 283.93,-187.85"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="283.59,-191.33 293.9,-188.92 284.33,-184.37 283.59,-191.33"/>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-181.67C266.56,-182.06 275.17,-182.46 283.65,-182.86"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="283.75,-186.37 293.9,-183.34 284.08,-179.38 283.75,-186.37"/>
|
||||
</g>
|
||||
<!-- Node12->Node6 -->
|
||||
<g id="edge12" class="edge">
|
||||
<g id="edge13" class="edge">
|
||||
<title>Node12->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M390.74,-215.65C417.29,-229.99 452,-248.73 475.65,-261.5"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="474.28,-264.74 484.74,-266.41 477.61,-258.58 474.28,-264.74"/>
|
||||
<path fill="none" stroke="midnightblue" d="M386.91,-206.65C414.68,-223.31 453.06,-246.34 477.83,-261.2"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="476.24,-264.32 486.61,-266.47 479.84,-258.32 476.24,-264.32"/>
|
||||
</g>
|
||||
<!-- Node12->Node12 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>Node12->Node12</title>
|
||||
<path fill="none" stroke="midnightblue" d="M323.93,-206.86C320.92,-216.54 330.11,-225 351.5,-225 364.87,-225 373.47,-221.7 377.31,-216.86"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="380.78,-217.32 379.07,-206.86 373.89,-216.1 380.78,-217.32"/>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="node13" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_node13"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="445,-185.5 445,-204.5 562,-204.5 562,-185.5 445,-185.5"/>
|
||||
<text text-anchor="middle" x="503.5" y="-192.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
<polygon fill="white" stroke="black" points="445,-176.5 445,-195.5 562,-195.5 562,-176.5 445,-176.5"/>
|
||||
<text text-anchor="middle" x="503.5" y="-183.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12->Node13 -->
|
||||
<g id="edge13" class="edge">
|
||||
<g id="edge14" class="edge">
|
||||
<title>Node12->Node13</title>
|
||||
<path fill="none" stroke="midnightblue" d="M409.21,-195C417.47,-195 426.04,-195 434.49,-195"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="434.71,-198.5 444.71,-195 434.71,-191.5 434.71,-198.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M409.21,-186C417.47,-186 426.04,-186 434.49,-186"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="434.71,-189.5 444.71,-186 434.71,-182.5 434.71,-189.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
@@ -1,14 +1,14 @@
|
||||
<?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.48.0 (20210717.1556)
|
||||
<!-- Generated by graphviz version 2.49.0 (20210828.1703)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="570pt" height="422pt"
|
||||
viewBox="0.00 0.00 570.00 422.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 418)">
|
||||
<svg width="570pt" height="427pt"
|
||||
viewBox="0.00 0.00 570.00 427.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 423)">
|
||||
<title>main</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-418 566,-418 566,4 -4,4"/>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-423 566,-423 566,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
@@ -85,7 +85,7 @@
|
||||
<!-- Node11 -->
|
||||
<g id="node11" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_node11"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#acbfd4a79adb242022fa2829740328c17" target="_top" xlink:title="predict/recommend a word that starts with a given prefix">
|
||||
<g id="a_node11"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#ae15fdc7f2b5023992d87a711d78566c4" target="_top" xlink:title="predict/recommend a word that starts with a given prefix">
|
||||
<polygon fill="white" stroke="black" points="143,-158.5 143,-199.5 258,-199.5 258,-158.5 143,-158.5"/>
|
||||
<text text-anchor="start" x="151" y="-187.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::trie</text>
|
||||
<text text-anchor="start" x="151" y="-176.5" font-family="Helvetica,sans-Serif" font-size="10.00">_using_hashmap::Trie</text>
|
||||
@@ -111,7 +111,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node14 -->
|
||||
<g id="edge14" class="edge">
|
||||
<g id="edge15" class="edge">
|
||||
<title>Node2->Node14</title>
|
||||
<path fill="none" stroke="midnightblue" d="M107.19,-169.65C117.34,-163.65 130.88,-155.74 143,-149 145.68,-147.51 148.44,-145.99 151.23,-144.47"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="153.06,-147.46 160.18,-139.62 149.72,-141.3 153.06,-147.46"/>
|
||||
@@ -126,7 +126,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node15 -->
|
||||
<g id="edge15" class="edge">
|
||||
<g id="edge16" class="edge">
|
||||
<title>Node2->Node15</title>
|
||||
<path fill="none" stroke="midnightblue" d="M94.44,-169.34C100.52,-151.01 116.15,-111.06 143,-89 145.14,-87.24 147.45,-85.65 149.86,-84.2"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="151.67,-87.2 159,-79.55 148.5,-80.96 151.67,-87.2"/>
|
||||
@@ -143,7 +143,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node16 -->
|
||||
<g id="edge16" class="edge">
|
||||
<g id="edge17" class="edge">
|
||||
<title>Node2->Node16</title>
|
||||
<path fill="none" stroke="midnightblue" d="M93.03,-169.46C97.15,-146.45 110.48,-87.15 143,-51 143.88,-50.02 144.79,-49.08 145.74,-48.15"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="148.18,-50.68 153.6,-41.57 143.69,-45.31 148.18,-50.68"/>
|
||||
@@ -152,31 +152,31 @@
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="308,-394.5 308,-413.5 395,-413.5 395,-394.5 308,-394.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-401.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::back</text>
|
||||
<polygon fill="white" stroke="black" points="308,-399.5 308,-418.5 395,-418.5 395,-399.5 308,-399.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-406.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M238.23,-357.72C254.95,-366.72 275.18,-377.01 294,-385 299.06,-387.15 304.45,-389.22 309.82,-391.16"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="308.79,-394.51 319.39,-394.49 311.1,-387.9 308.79,-394.51"/>
|
||||
<path fill="none" stroke="midnightblue" d="M234.07,-357.75C251.43,-368.27 273.4,-380.74 294,-390 298.72,-392.12 303.74,-394.14 308.78,-396.01"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="307.81,-399.38 318.4,-399.42 310.15,-392.78 307.81,-399.38"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/stack/pop.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="311,-356.5 311,-375.5 392,-375.5 392,-356.5 311,-356.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-363.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::pop</text>
|
||||
<polygon fill="white" stroke="black" points="311,-361.5 311,-380.5 392,-380.5 392,-361.5 311,-361.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-368.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::pop</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-348.05C272.15,-350.75 286.92,-353.62 300.47,-356.26"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="300.08,-359.75 310.56,-358.23 301.41,-352.88 300.08,-359.75"/>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-349.95C272.15,-353.12 286.92,-356.49 300.47,-359.58"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="300.03,-363.07 310.56,-361.89 301.59,-356.25 300.03,-363.07"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
@@ -190,76 +190,82 @@
|
||||
<!-- Node3->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node3->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M258,-332.53C300.06,-328.45 358.64,-321.15 409,-309 429.76,-303.99 452.35,-296.09 470.12,-289.28"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="471.42,-292.53 479.46,-285.63 468.87,-286.01 471.42,-292.53"/>
|
||||
<path fill="none" stroke="midnightblue" d="M258.17,-334.93C300.31,-332.38 358.93,-326.69 409,-314 431.5,-308.3 455.75,-298.32 473.91,-290.02"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="475.75,-293.03 483.33,-285.62 472.79,-286.68 475.75,-293.03"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/stack/push.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="308.5,-280.5 308.5,-299.5 394.5,-299.5 394.5,-280.5 308.5,-280.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-287.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::push</text>
|
||||
<polygon fill="white" stroke="black" points="308.5,-285.5 308.5,-304.5 394.5,-304.5 394.5,-285.5 308.5,-285.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-292.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::push</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node7 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node3->Node7</title>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-319.1C275.69,-313.6 294.5,-307.66 310.56,-302.6"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="311.68,-305.91 320.17,-299.57 309.58,-299.24 311.68,-305.91"/>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-321C274.45,-316.44 291.83,-311.54 307.08,-307.24"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="308.1,-310.59 316.77,-304.51 306.2,-303.85 308.1,-310.59"/>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="node8" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/stack/top.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="312.5,-242.5 312.5,-261.5 390.5,-261.5 390.5,-242.5 312.5,-242.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-249.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::top</text>
|
||||
<polygon fill="white" stroke="black" points="312.5,-247.5 312.5,-266.5 390.5,-266.5 390.5,-247.5 312.5,-247.5"/>
|
||||
<text text-anchor="middle" x="351.5" y="-254.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::stack::top</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node8 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node3->Node8</title>
|
||||
<path fill="none" stroke="midnightblue" d="M243.7,-316.4C248.66,-313.46 253.54,-310.3 258,-307 276.19,-293.55 274.77,-282.92 294,-271 297.32,-268.94 300.89,-267.08 304.56,-265.4"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="305.9,-268.63 313.82,-261.58 303.24,-262.16 305.9,-268.63"/>
|
||||
<path fill="none" stroke="midnightblue" d="M242.87,-316.42C248.07,-313.43 253.23,-310.26 258,-307 275.43,-295.09 275.65,-286.45 294,-276 297.69,-273.9 301.65,-271.98 305.7,-270.24"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="307.19,-273.42 315.23,-266.52 304.64,-266.9 307.19,-273.42"/>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="node12" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_node12"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#a5f501b7f1240a58bc082187f22c2fe17" target="_top" xlink:title="helper function to predict/recommend words that starts with a given prefix from the end of prefix's n...">
|
||||
<polygon fill="white" stroke="black" points="294,-174.5 294,-215.5 409,-215.5 409,-174.5 294,-174.5"/>
|
||||
<text text-anchor="start" x="302" y="-203.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::trie</text>
|
||||
<text text-anchor="start" x="302" y="-192.5" font-family="Helvetica,sans-Serif" font-size="10.00">_using_hashmap::Trie</text>
|
||||
<text text-anchor="middle" x="351.5" y="-181.5" font-family="Helvetica,sans-Serif" font-size="10.00">::get_all_words</text>
|
||||
<g id="a_node12"><a xlink:href="../../d3/d26/classdata__structures_1_1trie__using__hashmap_1_1_trie.html#a7bbe538c8015e8ce158e7ed43f605ebd" target="_top" xlink:title="helper function to predict/recommend words that starts with a given prefix from the end of prefix's n...">
|
||||
<polygon fill="white" stroke="black" points="294,-165.5 294,-206.5 409,-206.5 409,-165.5 294,-165.5"/>
|
||||
<text text-anchor="start" x="302" y="-194.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::trie</text>
|
||||
<text text-anchor="start" x="302" y="-183.5" font-family="Helvetica,sans-Serif" font-size="10.00">_using_hashmap::Trie</text>
|
||||
<text text-anchor="middle" x="351.5" y="-172.5" font-family="Helvetica,sans-Serif" font-size="10.00">::get_all_words</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node12 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>Node11->Node12</title>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-185.09C266.65,-186 275.36,-186.93 283.93,-187.85"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="283.59,-191.33 293.9,-188.92 284.33,-184.37 283.59,-191.33"/>
|
||||
<path fill="none" stroke="midnightblue" d="M258.26,-181.67C266.56,-182.06 275.17,-182.46 283.65,-182.86"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="283.75,-186.37 293.9,-183.34 284.08,-179.38 283.75,-186.37"/>
|
||||
</g>
|
||||
<!-- Node12->Node6 -->
|
||||
<g id="edge12" class="edge">
|
||||
<g id="edge13" class="edge">
|
||||
<title>Node12->Node6</title>
|
||||
<path fill="none" stroke="midnightblue" d="M390.74,-215.65C417.29,-229.99 452,-248.73 475.65,-261.5"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="474.28,-264.74 484.74,-266.41 477.61,-258.58 474.28,-264.74"/>
|
||||
<path fill="none" stroke="midnightblue" d="M386.91,-206.65C414.68,-223.31 453.06,-246.34 477.83,-261.2"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="476.24,-264.32 486.61,-266.47 479.84,-258.32 476.24,-264.32"/>
|
||||
</g>
|
||||
<!-- Node12->Node12 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>Node12->Node12</title>
|
||||
<path fill="none" stroke="midnightblue" d="M323.93,-206.86C320.92,-216.54 330.11,-225 351.5,-225 364.87,-225 373.47,-221.7 377.31,-216.86"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="380.78,-217.32 379.07,-206.86 373.89,-216.1 380.78,-217.32"/>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="node13" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_node13"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="445,-185.5 445,-204.5 562,-204.5 562,-185.5 445,-185.5"/>
|
||||
<text text-anchor="middle" x="503.5" y="-192.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
<polygon fill="white" stroke="black" points="445,-176.5 445,-195.5 562,-195.5 562,-176.5 445,-176.5"/>
|
||||
<text text-anchor="middle" x="503.5" y="-183.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12->Node13 -->
|
||||
<g id="edge13" class="edge">
|
||||
<g id="edge14" class="edge">
|
||||
<title>Node12->Node13</title>
|
||||
<path fill="none" stroke="midnightblue" d="M409.21,-195C417.47,-195 426.04,-195 434.49,-195"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="434.71,-198.5 444.71,-195 434.71,-191.5 434.71,-198.5"/>
|
||||
<path fill="none" stroke="midnightblue" d="M409.21,-186C417.47,-186 426.04,-186 434.49,-186"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="434.71,-189.5 444.71,-186 434.71,-182.5 434.71,-189.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user