Documentation for ecb8a3388d
253
d9/d1f/binary__addition_8cpp.html
Normal file
@@ -0,0 +1,253 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.12.0"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: greedy_algorithms/binary_addition.cpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<script type="text/javascript" src="../../clipboard.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../cookie.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<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>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.12.0 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() { codefold.init(1); });
|
||||
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search',true);
|
||||
$(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function(){initNavTree('d9/d1f/binary__addition_8cpp.html','../../'); initResizable(true); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<div id="MSearchResults">
|
||||
<div class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div id="SRResults"></div>
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle"><div class="title">binary_addition.cpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Adds two binary numbers and outputs resulting string.
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <algorithm></code><br />
|
||||
<code>#include <cassert></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
<code>#include <string></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for binary_addition.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d5/d95/binary__addition_8cpp__incl.svg" width="347" height="126"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<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="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html">greedy_algorithms::BinaryAddition</a></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">A class to perform binary addition of two binary strings. <a href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.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 id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d90/namespacegreedy__algorithms.html">greedy_algorithms</a></td></tr>
|
||||
<tr class="memdesc:d2/d90/namespacegreedy__algorithms"><td class="mdescLeft"> </td><td class="mdescRight">for string class <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 id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a483bb8ccf42aaf7375a83e91490eda1e" id="r_a483bb8ccf42aaf7375a83e91490eda1e"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a> ()</td></tr>
|
||||
<tr class="memdesc:a483bb8ccf42aaf7375a83e91490eda1e"><td class="mdescLeft"> </td><td class="mdescRight">run self test implementation. <br /></td></tr>
|
||||
<tr class="separator:a483bb8ccf42aaf7375a83e91490eda1e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" id="r_ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
|
||||
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft"> </td><td class="mdescRight">main function <br /></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>Adds two binary numbers and outputs resulting string. </p>
|
||||
<p>The algorithm for adding two binary strings works by processing them from right to left, similar to manual addition. It starts by determining the longer string's length to ensure both strings are fully traversed. For each pair of corresponding bits and any carry from the previous addition, it calculates the sum. If the sum exceeds 1, a carry is generated for the next bit. The results for each bit are collected in a result string, which is reversed at the end to present the final binary sum correctly. Additionally, the function validates the input to ensure that only valid binary strings (containing only '0' and '1') are processed. If invalid input is detected, it returns an empty string. </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/mjk22071998" target="_blank">Muhammad Junaid Khalid</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int main </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>main function </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on successful exit </dd></dl>
|
||||
<p>To execute tests</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 116</span> {</div>
|
||||
<div class="line"><span class="lineno"> 117</span> <a class="code hl_function" href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>(); <span class="comment">/// To execute tests</span></div>
|
||||
<div class="line"><span class="lineno"> 118</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 119</span>}</div>
|
||||
<div class="ttc" id="abinary__addition_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">run self test implementation.</div><div class="ttdef"><b>Definition</b> binary_addition.cpp:86</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d9/d1f/binary__addition_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="100%" height="487"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a483bb8ccf42aaf7375a83e91490eda1e" name="a483bb8ccf42aaf7375a83e91490eda1e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">◆ </a></span>tests()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">static void tests </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>run self test implementation. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 86</span> {</div>
|
||||
<div class="line"><span class="lineno"> 87</span> <a class="code hl_class" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html">greedy_algorithms::BinaryAddition</a> binaryAddition;</div>
|
||||
<div class="line"><span class="lineno"> 88</span> </div>
|
||||
<div class="line"><span class="lineno"> 89</span> <span class="comment">// Valid binary string tests</span></div>
|
||||
<div class="line"><span class="lineno"> 90</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"1010"</span>, <span class="stringliteral">"1101"</span>) == <span class="stringliteral">"10111"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 91</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"1111"</span>, <span class="stringliteral">"1111"</span>) == <span class="stringliteral">"11110"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 92</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"101"</span>, <span class="stringliteral">"11"</span>) == <span class="stringliteral">"1000"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 93</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"0"</span>, <span class="stringliteral">"0"</span>) == <span class="stringliteral">"0"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 94</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"1111"</span>, <span class="stringliteral">"1111"</span>) == <span class="stringliteral">"11110"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 95</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"0"</span>, <span class="stringliteral">"10101"</span>) == <span class="stringliteral">"10101"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 96</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"10101"</span>, <span class="stringliteral">"0"</span>) == <span class="stringliteral">"10101"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 97</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"101010101010101010101010101010"</span>,</div>
|
||||
<div class="line"><span class="lineno"> 98</span> <span class="stringliteral">"110110110110110110110110110110"</span>) ==</div>
|
||||
<div class="line"><span class="lineno"> 99</span> <span class="stringliteral">"1100001100001100001100001100000"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 100</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"1"</span>, <span class="stringliteral">"11111111"</span>) == <span class="stringliteral">"100000000"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 101</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"10101010"</span>, <span class="stringliteral">"01010101"</span>) == <span class="stringliteral">"11111111"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 102</span> </div>
|
||||
<div class="line"><span class="lineno"> 103</span> <span class="comment">// Invalid binary string tests (should return empty string)</span></div>
|
||||
<div class="line"><span class="lineno"> 104</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"10102"</span>, <span class="stringliteral">"1101"</span>) == <span class="stringliteral">""</span>);</div>
|
||||
<div class="line"><span class="lineno"> 105</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"ABC"</span>, <span class="stringliteral">"1101"</span>) == <span class="stringliteral">""</span>);</div>
|
||||
<div class="line"><span class="lineno"> 106</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"1010"</span>, <span class="stringliteral">"1102"</span>) == <span class="stringliteral">""</span>);</div>
|
||||
<div class="line"><span class="lineno"> 107</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"111"</span>, <span class="stringliteral">"1x1"</span>) == <span class="stringliteral">""</span>);</div>
|
||||
<div class="line"><span class="lineno"> 108</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"1x1"</span>, <span class="stringliteral">"111"</span>) == <span class="stringliteral">""</span>);</div>
|
||||
<div class="line"><span class="lineno"> 109</span> assert(binaryAddition.<a class="code hl_function" href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">addBinary</a>(<span class="stringliteral">"1234"</span>, <span class="stringliteral">"1101"</span>) == <span class="stringliteral">""</span>);</div>
|
||||
<div class="line"><span class="lineno"> 110</span>}</div>
|
||||
<div class="ttc" id="aclassgreedy__algorithms_1_1_binary_addition_html"><div class="ttname"><a href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html">greedy_algorithms::BinaryAddition</a></div><div class="ttdoc">A class to perform binary addition of two binary strings.</div><div class="ttdef"><b>Definition</b> binary_addition.cpp:31</div></div>
|
||||
<div class="ttc" id="aclassgreedy__algorithms_1_1_binary_addition_html_a801fd1ec5cda76b0bb82cbf23ed4d527"><div class="ttname"><a href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527">greedy_algorithms::BinaryAddition::addBinary</a></div><div class="ttdeci">std::string addBinary(const std::string &a, const std::string &b)</div><div class="ttdoc">Adds two binary strings and returns the result as a binary string.</div><div class="ttdef"><b>Definition</b> binary_addition.cpp:40</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d9/d1f/binary__addition_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.svg" width="100%" height="487"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_0eaa691bd54ab0922ca7f50599de6d22.html">greedy_algorithms</a></li><li class="navelem"><a class="el" href="../../d9/d1f/binary__addition_8cpp.html">binary_addition.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.12.0 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
6
d9/d1f/binary__addition_8cpp.js
Normal file
@@ -0,0 +1,6 @@
|
||||
var binary__addition_8cpp =
|
||||
[
|
||||
[ "greedy_algorithms::BinaryAddition", "de/df6/classgreedy__algorithms_1_1_binary_addition.html", "de/df6/classgreedy__algorithms_1_1_binary_addition" ],
|
||||
[ "main", "d9/d1f/binary__addition_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
|
||||
[ "tests", "d9/d1f/binary__addition_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e", null ]
|
||||
];
|
||||
@@ -0,0 +1,19 @@
|
||||
<map id="tests" name="tests">
|
||||
<area shape="rect" id="Node000001" title="run self test implementation." alt="" coords="5,145,56,171"/>
|
||||
<area shape="rect" id="Node000002" href="$de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527" title="Adds two binary strings and returns the result as a binary string." alt="" coords="104,138,275,178"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="56,156,88,156,88,161,56,161"/>
|
||||
<area shape="rect" id="Node000003" href="$de/df6/classgreedy__algorithms_1_1_binary_addition.html#a4cfb595ba80795a9efae0e3f6f5c34d2" title="Validates whether a string contains only binary characters (0 or 1)." alt="" coords="323,40,511,95"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="241,135,330,99,332,104,243,140"/>
|
||||
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="381,120,453,146"/>
|
||||
<area shape="poly" id="edge6_Node000002_Node000007" title=" " alt="" coords="275,146,365,136,366,141,275,151"/>
|
||||
<area shape="rect" id="Node000008" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/reverse.html#" title=" " alt="" coords="372,169,462,195"/>
|
||||
<area shape="poly" id="edge7_Node000002_Node000008" title=" " alt="" coords="275,165,356,173,356,178,275,170"/>
|
||||
<area shape="rect" id="Node000009" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/size.html#" title=" " alt="" coords="362,219,473,244"/>
|
||||
<area shape="poly" id="edge8_Node000002_Node000009" title=" " alt="" coords="244,177,324,205,347,212,346,217,322,210,242,182"/>
|
||||
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/all_any_none_of.html#" title=" " alt="" coords="579,5,658,31"/>
|
||||
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="511,42,563,29,565,34,512,47"/>
|
||||
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/begin.html#" title=" " alt="" coords="559,55,678,80"/>
|
||||
<area shape="poly" id="edge4_Node000003_Node000005" title=" " alt="" coords="511,65,544,65,544,70,511,70"/>
|
||||
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/end.html#" title=" " alt="" coords="564,104,673,130"/>
|
||||
<area shape="poly" id="edge5_Node000003_Node000006" title=" " alt="" coords="512,88,550,97,548,102,511,93"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
63665c0e068421d7d7905880f7257247
|
||||
@@ -0,0 +1,251 @@
|
||||
<?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 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: tests Pages: 1 -->
|
||||
<!--zoomable 187 -->
|
||||
|
||||
<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[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
|
||||
<defs>
|
||||
<circle id="rim" cx="0" cy="0" r="7"/>
|
||||
<circle id="rim2" cx="0" cy="0" r="3.5"/>
|
||||
<g id="zoomPlus">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/></use>
|
||||
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="zoomMin">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/></use>
|
||||
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="arrowUp" transform="translate(30 24)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowRight" transform="rotate(90) translate(36 -43)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowDown" transform="rotate(180) translate(-30 -48)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowLeft" transform="rotate(270) translate(-36 17)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="resetDef">
|
||||
<use xlink:href="#rim2" fill="#404040"><set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/></use>
|
||||
</g>
|
||||
</defs>
|
||||
<script type="application/ecmascript">
|
||||
var viewWidth = 512;
|
||||
var viewHeight = 187;
|
||||
var sectionId = 'dynsection-2';
|
||||
</script>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="viewport">
|
||||
<title>tests</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="run self test implementation.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37.75,-74.25 0,-74.25 0,-55 37.75,-55 37.75,-74.25"/>
|
||||
<text text-anchor="middle" x="18.88" y="-60.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527" target="_top" xlink:title="Adds two binary strings and returns the result as a binary string.">
|
||||
<polygon fill="white" stroke="#666666" points="202.25,-79.88 73.75,-79.88 73.75,-49.38 202.25,-49.38 202.25,-79.88"/>
|
||||
<text text-anchor="start" x="81.75" y="-66.38" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms::</text>
|
||||
<text text-anchor="middle" x="138" y="-55.12" font-family="Helvetica,sans-Serif" font-size="10.00">BinaryAddition::addBinary</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.18,-64.62C45.01,-64.62 53.25,-64.62 62.04,-64.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.87,-68.13 71.87,-64.63 61.87,-61.13 61.87,-68.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a4cfb595ba80795a9efae0e3f6f5c34d2" target="_top" xlink:title="Validates whether a string contains only binary characters (0 or 1).">
|
||||
<polygon fill="white" stroke="#666666" points="379.5,-153.5 238.25,-153.5 238.25,-111.75 379.5,-111.75 379.5,-153.5"/>
|
||||
<text text-anchor="start" x="246.25" y="-140" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms::</text>
|
||||
<text text-anchor="start" x="246.25" y="-128.75" font-family="Helvetica,sans-Serif" font-size="10.00">BinaryAddition::isValidBinary</text>
|
||||
<text text-anchor="middle" x="308.88" y="-117.5" font-family="Helvetica,sans-Serif" font-size="10.00">String</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M177.74,-80.23C197.5,-88.18 222.03,-98.06 244.45,-107.09"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="242.93,-110.25 253.51,-110.73 245.54,-103.75 242.93,-110.25"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="336,-93.25 281.75,-93.25 281.75,-74 336,-74 336,-93.25"/>
|
||||
<text text-anchor="middle" x="308.88" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node7 -->
|
||||
<g id="edge6_Node000002_Node000007" class="edge">
|
||||
<title>Node2->Node7</title>
|
||||
<g id="a_edge6_Node000002_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M202.36,-71.75C225.1,-74.31 250.02,-77.12 269.93,-79.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="269.48,-82.83 279.81,-80.47 270.26,-75.87 269.48,-82.83"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/reverse.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="342.75,-56.25 275,-56.25 275,-37 342.75,-37 342.75,-56.25"/>
|
||||
<text text-anchor="middle" x="308.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::reverse</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node8 -->
|
||||
<g id="edge7_Node000002_Node000008" class="edge">
|
||||
<title>Node2->Node8</title>
|
||||
<g id="a_edge7_Node000002_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M202.36,-57.87C222.57,-55.72 244.51,-53.38 263.11,-51.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="263.43,-54.88 273.01,-50.34 262.69,-47.92 263.43,-54.88"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="350.62,-19.25 267.12,-19.25 267.12,0 350.62,0 350.62,-19.25"/>
|
||||
<text text-anchor="middle" x="308.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node9 -->
|
||||
<g id="edge8_Node000002_Node000009" class="edge">
|
||||
<title>Node2->Node9</title>
|
||||
<g id="a_edge8_Node000002_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M178.28,-48.91C196.38,-41.94 218.25,-33.92 238.25,-27.62 243.98,-25.82 250.02,-24.06 256.04,-22.39"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="256.6,-25.86 265.35,-19.88 254.78,-19.1 256.6,-25.86"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/all_any_none_of.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="489.25,-179.25 430.5,-179.25 430.5,-160 489.25,-160 489.25,-179.25"/>
|
||||
<text text-anchor="middle" x="459.88" y="-165.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::all_of</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M379.58,-149.93C393.12,-153.3 406.88,-156.71 419.05,-159.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="418.15,-163.12 428.7,-162.13 419.84,-156.33 418.15,-163.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/begin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="504.25,-142.25 415.5,-142.25 415.5,-123 504.25,-123 504.25,-142.25"/>
|
||||
<text text-anchor="middle" x="459.88" y="-128.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::begin</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4_Node000003_Node000005" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M379.58,-132.62C387.72,-132.62 395.94,-132.62 403.84,-132.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="403.64,-136.13 413.64,-132.63 403.64,-129.13 403.64,-136.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/end.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="500.5,-105.25 419.25,-105.25 419.25,-86 500.5,-86 500.5,-105.25"/>
|
||||
<text text-anchor="middle" x="459.88" y="-91.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::end</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node6 -->
|
||||
<g id="edge5_Node000003_Node000006" class="edge">
|
||||
<title>Node3->Node6</title>
|
||||
<g id="a_edge5_Node000003_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M379.58,-115.32C389.06,-112.96 398.64,-110.58 407.71,-108.33"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="408.55,-111.73 417.41,-105.92 406.86,-104.94 408.55,-111.73"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<g id="navigator" transform="translate(0 0)" fill="#404254">
|
||||
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
|
||||
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
|
||||
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
|
||||
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
|
||||
<use id="arrowup" xlink:href="#arrowUp" x="0" y="0" onmousedown="handlePan(0,-1)"/>
|
||||
<use id="arrowright" xlink:href="#arrowRight" x="0" y="0" onmousedown="handlePan(1,0)"/>
|
||||
<use id="arrowdown" xlink:href="#arrowDown" x="0" y="0" onmousedown="handlePan(0,1)"/>
|
||||
<use id="arrowleft" xlink:href="#arrowLeft" x="0" y="0" onmousedown="handlePan(-1,0)"/>
|
||||
</g>
|
||||
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
|
||||
<g id="arrow_out" transform="scale(0.3 0.3)">
|
||||
<a xlink:href="binary__addition_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph_org.svg" target="_base">
|
||||
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
|
||||
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
|
||||
<path id="arrow"
|
||||
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
|
||||
style="fill:#404040;"/>
|
||||
</a>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,168 @@
|
||||
<?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 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: tests Pages: 1 -->
|
||||
<svg width="512pt" height="187pt"
|
||||
viewBox="0.00 0.00 512.25 187.25" 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 183.25)">
|
||||
<title>tests</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="run self test implementation.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37.75,-74.25 0,-74.25 0,-55 37.75,-55 37.75,-74.25"/>
|
||||
<text text-anchor="middle" x="18.88" y="-60.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527" target="_top" xlink:title="Adds two binary strings and returns the result as a binary string.">
|
||||
<polygon fill="white" stroke="#666666" points="202.25,-79.88 73.75,-79.88 73.75,-49.38 202.25,-49.38 202.25,-79.88"/>
|
||||
<text text-anchor="start" x="81.75" y="-66.38" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms::</text>
|
||||
<text text-anchor="middle" x="138" y="-55.12" font-family="Helvetica,sans-Serif" font-size="10.00">BinaryAddition::addBinary</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.18,-64.62C45.01,-64.62 53.25,-64.62 62.04,-64.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.87,-68.13 71.87,-64.63 61.87,-61.13 61.87,-68.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a4cfb595ba80795a9efae0e3f6f5c34d2" target="_top" xlink:title="Validates whether a string contains only binary characters (0 or 1).">
|
||||
<polygon fill="white" stroke="#666666" points="379.5,-153.5 238.25,-153.5 238.25,-111.75 379.5,-111.75 379.5,-153.5"/>
|
||||
<text text-anchor="start" x="246.25" y="-140" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms::</text>
|
||||
<text text-anchor="start" x="246.25" y="-128.75" font-family="Helvetica,sans-Serif" font-size="10.00">BinaryAddition::isValidBinary</text>
|
||||
<text text-anchor="middle" x="308.88" y="-117.5" font-family="Helvetica,sans-Serif" font-size="10.00">String</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M177.74,-80.23C197.5,-88.18 222.03,-98.06 244.45,-107.09"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="242.93,-110.25 253.51,-110.73 245.54,-103.75 242.93,-110.25"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="336,-93.25 281.75,-93.25 281.75,-74 336,-74 336,-93.25"/>
|
||||
<text text-anchor="middle" x="308.88" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node7 -->
|
||||
<g id="edge6_Node000002_Node000007" class="edge">
|
||||
<title>Node2->Node7</title>
|
||||
<g id="a_edge6_Node000002_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M202.36,-71.75C225.1,-74.31 250.02,-77.12 269.93,-79.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="269.48,-82.83 279.81,-80.47 270.26,-75.87 269.48,-82.83"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/reverse.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="342.75,-56.25 275,-56.25 275,-37 342.75,-37 342.75,-56.25"/>
|
||||
<text text-anchor="middle" x="308.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::reverse</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node8 -->
|
||||
<g id="edge7_Node000002_Node000008" class="edge">
|
||||
<title>Node2->Node8</title>
|
||||
<g id="a_edge7_Node000002_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M202.36,-57.87C222.57,-55.72 244.51,-53.38 263.11,-51.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="263.43,-54.88 273.01,-50.34 262.69,-47.92 263.43,-54.88"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="350.62,-19.25 267.12,-19.25 267.12,0 350.62,0 350.62,-19.25"/>
|
||||
<text text-anchor="middle" x="308.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node9 -->
|
||||
<g id="edge8_Node000002_Node000009" class="edge">
|
||||
<title>Node2->Node9</title>
|
||||
<g id="a_edge8_Node000002_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M178.28,-48.91C196.38,-41.94 218.25,-33.92 238.25,-27.62 243.98,-25.82 250.02,-24.06 256.04,-22.39"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="256.6,-25.86 265.35,-19.88 254.78,-19.1 256.6,-25.86"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/all_any_none_of.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="489.25,-179.25 430.5,-179.25 430.5,-160 489.25,-160 489.25,-179.25"/>
|
||||
<text text-anchor="middle" x="459.88" y="-165.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::all_of</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M379.58,-149.93C393.12,-153.3 406.88,-156.71 419.05,-159.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="418.15,-163.12 428.7,-162.13 419.84,-156.33 418.15,-163.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/begin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="504.25,-142.25 415.5,-142.25 415.5,-123 504.25,-123 504.25,-142.25"/>
|
||||
<text text-anchor="middle" x="459.88" y="-128.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::begin</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4_Node000003_Node000005" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M379.58,-132.62C387.72,-132.62 395.94,-132.62 403.84,-132.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="403.64,-136.13 413.64,-132.63 403.64,-129.13 403.64,-136.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/end.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="500.5,-105.25 419.25,-105.25 419.25,-86 500.5,-86 500.5,-105.25"/>
|
||||
<text text-anchor="middle" x="459.88" y="-91.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::end</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node6 -->
|
||||
<g id="edge5_Node000003_Node000006" class="edge">
|
||||
<title>Node3->Node6</title>
|
||||
<g id="a_edge5_Node000003_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M379.58,-115.32C389.06,-112.96 398.64,-110.58 407.71,-108.33"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="408.55,-111.73 417.41,-105.92 406.86,-104.94 408.55,-111.73"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 8.1 KiB |
@@ -0,0 +1,21 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="Node000001" title="main function" alt="" coords="5,145,55,171"/>
|
||||
<area shape="rect" id="Node000002" href="$d9/d1f/binary__addition_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" title="run self test implementation." alt="" coords="103,145,153,171"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,156,88,156,88,161,55,161"/>
|
||||
<area shape="rect" id="Node000003" href="$de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527" title="Adds two binary strings and returns the result as a binary string." alt="" coords="201,138,372,178"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="154,156,185,156,185,161,154,161"/>
|
||||
<area shape="rect" id="Node000004" href="$de/df6/classgreedy__algorithms_1_1_binary_addition.html#a4cfb595ba80795a9efae0e3f6f5c34d2" title="Validates whether a string contains only binary characters (0 or 1)." alt="" coords="420,40,609,95"/>
|
||||
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="339,135,428,99,430,104,341,140"/>
|
||||
<area shape="rect" id="Node000008" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="478,120,551,146"/>
|
||||
<area shape="poly" id="edge7_Node000003_Node000008" title=" " alt="" coords="372,146,462,136,463,141,373,151"/>
|
||||
<area shape="rect" id="Node000009" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/reverse.html#" title=" " alt="" coords="469,169,560,195"/>
|
||||
<area shape="poly" id="edge8_Node000003_Node000009" title=" " alt="" coords="373,165,454,173,453,178,372,170"/>
|
||||
<area shape="rect" id="Node000010" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/size.html#" title=" " alt="" coords="459,219,570,244"/>
|
||||
<area shape="poly" id="edge9_Node000003_Node000010" title=" " alt="" coords="341,177,421,205,445,212,443,217,420,210,339,182"/>
|
||||
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/all_any_none_of.html#" title=" " alt="" coords="677,5,755,31"/>
|
||||
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="608,42,661,29,662,34,609,47"/>
|
||||
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/begin.html#" title=" " alt="" coords="657,55,775,80"/>
|
||||
<area shape="poly" id="edge5_Node000004_Node000006" title=" " alt="" coords="609,65,641,65,641,70,609,70"/>
|
||||
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/end.html#" title=" " alt="" coords="662,104,770,130"/>
|
||||
<area shape="poly" id="edge6_Node000004_Node000007" title=" " alt="" coords="609,88,647,97,646,102,608,93"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
c2e5140f359b81ab1ce769a37f7c6ebb
|
||||
@@ -0,0 +1,269 @@
|
||||
<?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 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<!--zoomable 187 -->
|
||||
|
||||
<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[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
|
||||
<defs>
|
||||
<circle id="rim" cx="0" cy="0" r="7"/>
|
||||
<circle id="rim2" cx="0" cy="0" r="3.5"/>
|
||||
<g id="zoomPlus">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/></use>
|
||||
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="zoomMin">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/></use>
|
||||
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="arrowUp" transform="translate(30 24)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowRight" transform="rotate(90) translate(36 -43)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowDown" transform="rotate(180) translate(-30 -48)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowLeft" transform="rotate(270) translate(-36 17)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="resetDef">
|
||||
<use xlink:href="#rim2" fill="#404040"><set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/></use>
|
||||
</g>
|
||||
</defs>
|
||||
<script type="application/ecmascript">
|
||||
var viewWidth = 585;
|
||||
var viewHeight = 187;
|
||||
var sectionId = 'dynsection-1';
|
||||
</script>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="viewport">
|
||||
<title>main</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="main function">
|
||||
<polygon fill="#999999" stroke="#666666" points="37,-74.25 0,-74.25 0,-55 37,-55 37,-74.25"/>
|
||||
<text text-anchor="middle" x="18.5" y="-60.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d9/d1f/binary__addition_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="run self test implementation.">
|
||||
<polygon fill="white" stroke="#666666" points="110.75,-74.25 73,-74.25 73,-55 110.75,-55 110.75,-74.25"/>
|
||||
<text text-anchor="middle" x="91.88" y="-60.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.14,-64.62C44.55,-64.62 53.37,-64.62 61.69,-64.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.43,-68.13 71.43,-64.63 61.43,-61.13 61.43,-68.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527" target="_top" xlink:title="Adds two binary strings and returns the result as a binary string.">
|
||||
<polygon fill="white" stroke="#666666" points="275.25,-79.88 146.75,-79.88 146.75,-49.38 275.25,-49.38 275.25,-79.88"/>
|
||||
<text text-anchor="start" x="154.75" y="-66.38" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms::</text>
|
||||
<text text-anchor="middle" x="211" y="-55.12" font-family="Helvetica,sans-Serif" font-size="10.00">BinaryAddition::addBinary</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M111.18,-64.62C118.01,-64.62 126.25,-64.62 135.04,-64.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.87,-68.13 144.87,-64.63 134.87,-61.13 134.87,-68.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a4cfb595ba80795a9efae0e3f6f5c34d2" target="_top" xlink:title="Validates whether a string contains only binary characters (0 or 1).">
|
||||
<polygon fill="white" stroke="#666666" points="452.5,-153.5 311.25,-153.5 311.25,-111.75 452.5,-111.75 452.5,-153.5"/>
|
||||
<text text-anchor="start" x="319.25" y="-140" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms::</text>
|
||||
<text text-anchor="start" x="319.25" y="-128.75" font-family="Helvetica,sans-Serif" font-size="10.00">BinaryAddition::isValidBinary</text>
|
||||
<text text-anchor="middle" x="381.88" y="-117.5" font-family="Helvetica,sans-Serif" font-size="10.00">String</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M250.74,-80.23C270.5,-88.18 295.03,-98.06 317.45,-107.09"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="315.93,-110.25 326.51,-110.73 318.54,-103.75 315.93,-110.25"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="409,-93.25 354.75,-93.25 354.75,-74 409,-74 409,-93.25"/>
|
||||
<text text-anchor="middle" x="381.88" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node8 -->
|
||||
<g id="edge7_Node000003_Node000008" class="edge">
|
||||
<title>Node3->Node8</title>
|
||||
<g id="a_edge7_Node000003_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M275.36,-71.75C298.1,-74.31 323.02,-77.12 342.93,-79.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="342.48,-82.83 352.81,-80.47 343.26,-75.87 342.48,-82.83"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/reverse.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="415.75,-56.25 348,-56.25 348,-37 415.75,-37 415.75,-56.25"/>
|
||||
<text text-anchor="middle" x="381.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::reverse</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node9 -->
|
||||
<g id="edge8_Node000003_Node000009" class="edge">
|
||||
<title>Node3->Node9</title>
|
||||
<g id="a_edge8_Node000003_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M275.36,-57.87C295.57,-55.72 317.51,-53.38 336.11,-51.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="336.43,-54.88 346.01,-50.34 335.69,-47.92 336.43,-54.88"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="423.62,-19.25 340.12,-19.25 340.12,0 423.62,0 423.62,-19.25"/>
|
||||
<text text-anchor="middle" x="381.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node10 -->
|
||||
<g id="edge9_Node000003_Node000010" class="edge">
|
||||
<title>Node3->Node10</title>
|
||||
<g id="a_edge9_Node000003_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M251.28,-48.91C269.38,-41.94 291.25,-33.92 311.25,-27.62 316.98,-25.82 323.02,-24.06 329.04,-22.39"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="329.6,-25.86 338.35,-19.88 327.78,-19.1 329.6,-25.86"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/all_any_none_of.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="562.25,-179.25 503.5,-179.25 503.5,-160 562.25,-160 562.25,-179.25"/>
|
||||
<text text-anchor="middle" x="532.88" y="-165.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::all_of</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4_Node000004_Node000005" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M452.58,-149.93C466.12,-153.3 479.88,-156.71 492.05,-159.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="491.15,-163.12 501.7,-162.13 492.84,-156.33 491.15,-163.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/begin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="577.25,-142.25 488.5,-142.25 488.5,-123 577.25,-123 577.25,-142.25"/>
|
||||
<text text-anchor="middle" x="532.88" y="-128.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::begin</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node6 -->
|
||||
<g id="edge5_Node000004_Node000006" class="edge">
|
||||
<title>Node4->Node6</title>
|
||||
<g id="a_edge5_Node000004_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M452.58,-132.62C460.72,-132.62 468.94,-132.62 476.84,-132.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="476.64,-136.13 486.64,-132.63 476.64,-129.13 476.64,-136.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/end.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="573.5,-105.25 492.25,-105.25 492.25,-86 573.5,-86 573.5,-105.25"/>
|
||||
<text text-anchor="middle" x="532.88" y="-91.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::end</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node7 -->
|
||||
<g id="edge6_Node000004_Node000007" class="edge">
|
||||
<title>Node4->Node7</title>
|
||||
<g id="a_edge6_Node000004_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M452.58,-115.32C462.06,-112.96 471.64,-110.58 480.71,-108.33"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="481.55,-111.73 490.41,-105.92 479.86,-104.94 481.55,-111.73"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<g id="navigator" transform="translate(0 0)" fill="#404254">
|
||||
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
|
||||
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
|
||||
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
|
||||
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
|
||||
<use id="arrowup" xlink:href="#arrowUp" x="0" y="0" onmousedown="handlePan(0,-1)"/>
|
||||
<use id="arrowright" xlink:href="#arrowRight" x="0" y="0" onmousedown="handlePan(1,0)"/>
|
||||
<use id="arrowdown" xlink:href="#arrowDown" x="0" y="0" onmousedown="handlePan(0,1)"/>
|
||||
<use id="arrowleft" xlink:href="#arrowLeft" x="0" y="0" onmousedown="handlePan(-1,0)"/>
|
||||
</g>
|
||||
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
|
||||
<g id="arrow_out" transform="scale(0.3 0.3)">
|
||||
<a xlink:href="binary__addition_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph_org.svg" target="_base">
|
||||
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
|
||||
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
|
||||
<path id="arrow"
|
||||
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
|
||||
style="fill:#404040;"/>
|
||||
</a>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 13 KiB |
@@ -0,0 +1,186 @@
|
||||
<?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 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="585pt" height="187pt"
|
||||
viewBox="0.00 0.00 585.25 187.25" 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 183.25)">
|
||||
<title>main</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="main function">
|
||||
<polygon fill="#999999" stroke="#666666" points="37,-74.25 0,-74.25 0,-55 37,-55 37,-74.25"/>
|
||||
<text text-anchor="middle" x="18.5" y="-60.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d9/d1f/binary__addition_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="run self test implementation.">
|
||||
<polygon fill="white" stroke="#666666" points="110.75,-74.25 73,-74.25 73,-55 110.75,-55 110.75,-74.25"/>
|
||||
<text text-anchor="middle" x="91.88" y="-60.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.14,-64.62C44.55,-64.62 53.37,-64.62 61.69,-64.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.43,-68.13 71.43,-64.63 61.43,-61.13 61.43,-68.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a801fd1ec5cda76b0bb82cbf23ed4d527" target="_top" xlink:title="Adds two binary strings and returns the result as a binary string.">
|
||||
<polygon fill="white" stroke="#666666" points="275.25,-79.88 146.75,-79.88 146.75,-49.38 275.25,-49.38 275.25,-79.88"/>
|
||||
<text text-anchor="start" x="154.75" y="-66.38" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms::</text>
|
||||
<text text-anchor="middle" x="211" y="-55.12" font-family="Helvetica,sans-Serif" font-size="10.00">BinaryAddition::addBinary</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M111.18,-64.62C118.01,-64.62 126.25,-64.62 135.04,-64.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.87,-68.13 144.87,-64.63 134.87,-61.13 134.87,-68.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../de/df6/classgreedy__algorithms_1_1_binary_addition.html#a4cfb595ba80795a9efae0e3f6f5c34d2" target="_top" xlink:title="Validates whether a string contains only binary characters (0 or 1).">
|
||||
<polygon fill="white" stroke="#666666" points="452.5,-153.5 311.25,-153.5 311.25,-111.75 452.5,-111.75 452.5,-153.5"/>
|
||||
<text text-anchor="start" x="319.25" y="-140" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms::</text>
|
||||
<text text-anchor="start" x="319.25" y="-128.75" font-family="Helvetica,sans-Serif" font-size="10.00">BinaryAddition::isValidBinary</text>
|
||||
<text text-anchor="middle" x="381.88" y="-117.5" font-family="Helvetica,sans-Serif" font-size="10.00">String</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M250.74,-80.23C270.5,-88.18 295.03,-98.06 317.45,-107.09"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="315.93,-110.25 326.51,-110.73 318.54,-103.75 315.93,-110.25"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="409,-93.25 354.75,-93.25 354.75,-74 409,-74 409,-93.25"/>
|
||||
<text text-anchor="middle" x="381.88" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node8 -->
|
||||
<g id="edge7_Node000003_Node000008" class="edge">
|
||||
<title>Node3->Node8</title>
|
||||
<g id="a_edge7_Node000003_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M275.36,-71.75C298.1,-74.31 323.02,-77.12 342.93,-79.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="342.48,-82.83 352.81,-80.47 343.26,-75.87 342.48,-82.83"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/reverse.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="415.75,-56.25 348,-56.25 348,-37 415.75,-37 415.75,-56.25"/>
|
||||
<text text-anchor="middle" x="381.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::reverse</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node9 -->
|
||||
<g id="edge8_Node000003_Node000009" class="edge">
|
||||
<title>Node3->Node9</title>
|
||||
<g id="a_edge8_Node000003_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M275.36,-57.87C295.57,-55.72 317.51,-53.38 336.11,-51.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="336.43,-54.88 346.01,-50.34 335.69,-47.92 336.43,-54.88"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="423.62,-19.25 340.12,-19.25 340.12,0 423.62,0 423.62,-19.25"/>
|
||||
<text text-anchor="middle" x="381.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node10 -->
|
||||
<g id="edge9_Node000003_Node000010" class="edge">
|
||||
<title>Node3->Node10</title>
|
||||
<g id="a_edge9_Node000003_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M251.28,-48.91C269.38,-41.94 291.25,-33.92 311.25,-27.62 316.98,-25.82 323.02,-24.06 329.04,-22.39"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="329.6,-25.86 338.35,-19.88 327.78,-19.1 329.6,-25.86"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/all_any_none_of.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="562.25,-179.25 503.5,-179.25 503.5,-160 562.25,-160 562.25,-179.25"/>
|
||||
<text text-anchor="middle" x="532.88" y="-165.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::all_of</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4_Node000004_Node000005" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M452.58,-149.93C466.12,-153.3 479.88,-156.71 492.05,-159.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="491.15,-163.12 501.7,-162.13 492.84,-156.33 491.15,-163.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/begin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="577.25,-142.25 488.5,-142.25 488.5,-123 577.25,-123 577.25,-142.25"/>
|
||||
<text text-anchor="middle" x="532.88" y="-128.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::begin</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node6 -->
|
||||
<g id="edge5_Node000004_Node000006" class="edge">
|
||||
<title>Node4->Node6</title>
|
||||
<g id="a_edge5_Node000004_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M452.58,-132.62C460.72,-132.62 468.94,-132.62 476.84,-132.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="476.64,-136.13 486.64,-132.63 476.64,-129.13 476.64,-136.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/end.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="573.5,-105.25 492.25,-105.25 492.25,-86 573.5,-86 573.5,-105.25"/>
|
||||
<text text-anchor="middle" x="532.88" y="-91.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::end</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node7 -->
|
||||
<g id="edge6_Node000004_Node000007" class="edge">
|
||||
<title>Node4->Node7</title>
|
||||
<g id="a_edge6_Node000004_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M452.58,-115.32C462.06,-112.96 471.64,-110.58 480.71,-108.33"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="481.55,-111.73 490.41,-105.92 479.86,-104.94 481.55,-111.73"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 8.9 KiB |
@@ -0,0 +1,315 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.12.0"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: search/longest_increasing_subsequence_using_binary_search.cpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<script type="text/javascript" src="../../clipboard.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../cookie.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<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>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.12.0 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() { codefold.init(1); });
|
||||
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search',true);
|
||||
$(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function(){initNavTree('d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html','../../'); initResizable(true); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<div id="MSearchResults">
|
||||
<div class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div id="SRResults"></div>
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle"><div class="title">longest_increasing_subsequence_using_binary_search.cpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>find the length of the Longest Increasing Subsequence (LIS) using <a href="https://en.wikipedia.org/wiki/Longest_increasing_subsequence" target="_blank">Binary Search</a>
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <cassert></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
<code>#include <vector></code><br />
|
||||
<code>#include <algorithm></code><br />
|
||||
<code>#include <cstdint></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for longest_increasing_subsequence_using_binary_search.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d6/d04/longest__increasing__subsequence__using__binary__search_8cpp__incl.svg" width="435" height="140"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a313539d9a97fc6e121ce496873ba892e" id="r_a313539d9a97fc6e121ce496873ba892e"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||||
<tr class="memitem:a313539d9a97fc6e121ce496873ba892e"><td class="memTemplItemLeft" align="right" valign="top"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#a313539d9a97fc6e121ce496873ba892e">longest_increasing_subsequence_using_binary_search</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< T > &nums)</td></tr>
|
||||
<tr class="memdesc:a313539d9a97fc6e121ce496873ba892e"><td class="mdescLeft"> </td><td class="mdescRight">for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> <br /></td></tr>
|
||||
<tr class="separator:a313539d9a97fc6e121ce496873ba892e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a483bb8ccf42aaf7375a83e91490eda1e" id="r_a483bb8ccf42aaf7375a83e91490eda1e"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a> ()</td></tr>
|
||||
<tr class="memdesc:a483bb8ccf42aaf7375a83e91490eda1e"><td class="mdescLeft"> </td><td class="mdescRight">Test cases for Longest Increasing Subsequence function. <br /></td></tr>
|
||||
<tr class="separator:a483bb8ccf42aaf7375a83e91490eda1e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" id="r_ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
|
||||
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft"> </td><td class="mdescRight">Main function to run tests. <br /></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>find the length of the Longest Increasing Subsequence (LIS) using <a href="https://en.wikipedia.org/wiki/Longest_increasing_subsequence" target="_blank">Binary Search</a> </p>
|
||||
<p>Given an integer array nums, return the length of the longest strictly increasing subsequence. The longest increasing subsequence is described as a subsequence of an array where: All elements of the subsequence are in increasing order. This subsequence itself is of the longest length possible.</p>
|
||||
<p>For solving this problem we have Three Approaches :-</p>
|
||||
<p>Approach 1 :- Using Brute Force The first approach that came to your mind is the Brute Force approach where we generate all subsequences and then manually filter the subsequences whose elements come in increasing order and then return the longest such subsequence. Time Complexity :- O(2^n) It's time complexity is exponential. Therefore we will try some other approaches.</p>
|
||||
<p>Approach 2 :- Using Dynamic Programming To generate all subsequences we will use recursion and in the recursive logic we will figure out a way to solve this problem. Recursive Logic to solve this problem:-</p><ol type="1">
|
||||
<li>We only consider the element in the subsequence if the element is grater then the last element present in the subsequence</li>
|
||||
<li>When we consider the element we will increase the length of subsequence by 1 Time Complexity: O(N*N) Space Complexity: O(N*N) + O(N)</li>
|
||||
</ol>
|
||||
<p>This approach is better then the previous Brute Force approach so, we can consider this approach.</p>
|
||||
<p>But when the Constraints for the problem is very larger then this approach fails</p>
|
||||
<p>Approach 3 :- Using Binary Search Other approaches use additional space to create a new subsequence Array. Instead, this solution uses the existing nums Array to build the subsequence array. We can do this because the length of the subsequence array will never be longer than the current index.</p>
|
||||
<p>Time complexity: O(n∗log(n)) Space complexity: O(1)</p>
|
||||
<p>This approach consider Most optimal Approach for solving this problem</p>
|
||||
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/namanmodi65" target="_blank">Naman Jain</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="a313539d9a97fc6e121ce496873ba892e" name="a313539d9a97fc6e121ce496873ba892e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a313539d9a97fc6e121ce496873ba892e">◆ </a></span>longest_increasing_subsequence_using_binary_search()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<div class="memtemplate">
|
||||
template<typename T > </div>
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> longest_increasing_subsequence_using_binary_search </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< T > &</td> <td class="paramname"><span class="paramname"><em>nums</em></span></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> </p>
|
||||
<p>for std::assert for IO operations for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/lower_bound.html">std::lower_bound</a></p>
|
||||
<p>Function to find the length of the Longest Increasing Subsequence (LIS) using Binary Search </p><dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">T</td><td>The type of the elements in the input vector </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">nums</td><td>The input vector of elements of type T </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>The length of the longest increasing subsequence </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 65</span> {</div>
|
||||
<div class="line"><span class="lineno"> 66</span> <span class="keywordflow">if</span> (nums.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/empty.html">empty</a>()) <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 67</span> </div>
|
||||
<div class="line"><span class="lineno"> 68</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<T></a> ans;</div>
|
||||
<div class="line"><span class="lineno"> 69</span> ans.push_back(nums[0]);</div>
|
||||
<div class="line"><span class="lineno"> 70</span> <span class="keywordflow">for</span> (<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> i = 1; i < nums.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>(); i++) {</div>
|
||||
<div class="line"><span class="lineno"> 71</span> <span class="keywordflow">if</span> (nums[i] > ans.back()) {</div>
|
||||
<div class="line"><span class="lineno"> 72</span> ans.push_back(nums[i]);</div>
|
||||
<div class="line"><span class="lineno"> 73</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 74</span> <span class="keyword">auto</span> idx = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/lower_bound.html">std::lower_bound</a>(ans.begin(), ans.end(), nums[i]) - ans.begin();</div>
|
||||
<div class="line"><span class="lineno"> 75</span> ans[idx] = nums[i];</div>
|
||||
<div class="line"><span class="lineno"> 76</span> }</div>
|
||||
<div class="line"><span class="lineno"> 77</span> }</div>
|
||||
<div class="line"><span class="lineno"> 78</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a><span class="keyword">></span>(ans.size());</div>
|
||||
<div class="line"><span class="lineno"> 79</span>}</div>
|
||||
<div class="ttc" id="aempty_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/empty.html">std::vector::empty</a></div><div class="ttdeci">T empty(T... args)</div></div>
|
||||
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
|
||||
<div class="ttc" id="alower_bound_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/lower_bound.html">std::lower_bound</a></div><div class="ttdeci">T lower_bound(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>
|
||||
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
|
||||
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
|
||||
</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="../../d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp_a313539d9a97fc6e121ce496873ba892e_cgraph.svg" width="372" height="135"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int main </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Main function to run tests. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 114</span> {</div>
|
||||
<div class="line"><span class="lineno"> 115</span> <a class="code hl_function" href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>(); <span class="comment">// run self test implementation</span></div>
|
||||
<div class="line"><span class="lineno"> 116</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 117</span>}</div>
|
||||
<div class="ttc" id="alongest__increasing__subsequence__using__binary__search_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">Test cases for Longest Increasing Subsequence function.</div><div class="ttdef"><b>Definition</b> longest_increasing_subsequence_using_binary_search.cpp:85</div></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="../../d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="567" height="135"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a483bb8ccf42aaf7375a83e91490eda1e" name="a483bb8ccf42aaf7375a83e91490eda1e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">◆ </a></span>tests()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">static void tests </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Test cases for Longest Increasing Subsequence function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 85</span> {</div>
|
||||
<div class="line"><span class="lineno"> 86</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int></a> arr = {10, 9, 2, 5, 3, 7, 101, 18};</div>
|
||||
<div class="line"><span class="lineno"> 87</span> assert(<a class="code hl_function" href="#a313539d9a97fc6e121ce496873ba892e">longest_increasing_subsequence_using_binary_search</a>(arr) == 4);</div>
|
||||
<div class="line"><span class="lineno"> 88</span> </div>
|
||||
<div class="line"><span class="lineno"> 89</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int></a> arr2 = {0, 1, 0, 3, 2, 3};</div>
|
||||
<div class="line"><span class="lineno"> 90</span> assert(<a class="code hl_function" href="#a313539d9a97fc6e121ce496873ba892e">longest_increasing_subsequence_using_binary_search</a>(arr2) == 4);</div>
|
||||
<div class="line"><span class="lineno"> 91</span> </div>
|
||||
<div class="line"><span class="lineno"> 92</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int></a> arr3 = {7, 7, 7, 7, 7, 7, 7};</div>
|
||||
<div class="line"><span class="lineno"> 93</span> assert(<a class="code hl_function" href="#a313539d9a97fc6e121ce496873ba892e">longest_increasing_subsequence_using_binary_search</a>(arr3) == 1);</div>
|
||||
<div class="line"><span class="lineno"> 94</span> </div>
|
||||
<div class="line"><span class="lineno"> 95</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int></a> arr4 = {-10, -1, -5, 0, 5, 1, 2};</div>
|
||||
<div class="line"><span class="lineno"> 96</span> assert(<a class="code hl_function" href="#a313539d9a97fc6e121ce496873ba892e">longest_increasing_subsequence_using_binary_search</a>(arr4) == 5);</div>
|
||||
<div class="line"><span class="lineno"> 97</span> </div>
|
||||
<div class="line"><span class="lineno"> 98</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<double></a> arr5 = {3.5, 1.2, 2.8, 3.1, 4.0};</div>
|
||||
<div class="line"><span class="lineno"> 99</span> assert(<a class="code hl_function" href="#a313539d9a97fc6e121ce496873ba892e">longest_increasing_subsequence_using_binary_search</a>(arr5) == 4);</div>
|
||||
<div class="line"><span class="lineno"> 100</span> </div>
|
||||
<div class="line"><span class="lineno"> 101</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<char></a> arr6 = {<span class="charliteral">'a'</span>, <span class="charliteral">'b'</span>, <span class="charliteral">'c'</span>, <span class="charliteral">'a'</span>, <span class="charliteral">'d'</span>};</div>
|
||||
<div class="line"><span class="lineno"> 102</span> assert(<a class="code hl_function" href="#a313539d9a97fc6e121ce496873ba892e">longest_increasing_subsequence_using_binary_search</a>(arr6) == 4);</div>
|
||||
<div class="line"><span class="lineno"> 103</span> </div>
|
||||
<div class="line"><span class="lineno"> 104</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int></a> arr7 = {};</div>
|
||||
<div class="line"><span class="lineno"> 105</span> assert(<a class="code hl_function" href="#a313539d9a97fc6e121ce496873ba892e">longest_increasing_subsequence_using_binary_search</a>(arr7) == 0);</div>
|
||||
<div class="line"><span class="lineno"> 106</span> </div>
|
||||
<div class="line"><span class="lineno"> 107</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 have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 108</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="alongest__increasing__subsequence__using__binary__search_8cpp_html_a313539d9a97fc6e121ce496873ba892e"><div class="ttname"><a href="#a313539d9a97fc6e121ce496873ba892e">longest_increasing_subsequence_using_binary_search</a></div><div class="ttdeci">std::uint32_t longest_increasing_subsequence_using_binary_search(std::vector< T > &nums)</div><div class="ttdoc">for std::uint32_t</div><div class="ttdef"><b>Definition</b> longest_increasing_subsequence_using_binary_search.cpp:65</div></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="../../d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.svg" width="470" height="135"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_19b2bf9199a15c634a08b1ede1dd896a.html">search</a></li><li class="navelem"><a class="el" href="../../d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html">longest_increasing_subsequence_using_binary_search.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.12.0 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,6 @@
|
||||
var longest__increasing__subsequence__using__binary__search_8cpp =
|
||||
[
|
||||
[ "longest_increasing_subsequence_using_binary_search", "d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#a313539d9a97fc6e121ce496873ba892e", null ],
|
||||
[ "main", "d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
|
||||
[ "tests", "d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e", null ]
|
||||
];
|
||||
@@ -0,0 +1,9 @@
|
||||
<map id="longest_increasing_subsequence_using_binary_search" name="longest_increasing_subsequence_using_binary_search">
|
||||
<area shape="rect" id="Node000001" title="for std::uint32_t" alt="" coords="5,40,191,95"/>
|
||||
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/empty.html#" title=" " alt="" coords="239,5,366,31"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="191,42,231,33,232,38,192,48"/>
|
||||
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/lower_bound.html#" title=" " alt="" coords="242,55,362,80"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="191,65,227,65,227,70,191,70"/>
|
||||
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="245,104,360,130"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="192,87,232,97,231,102,191,93"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
d5964ace614cf3e3a1424d09c566ea55
|
||||
@@ -0,0 +1,103 @@
|
||||
<?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 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: longest_increasing_subsequence_using_binary_search Pages: 1 -->
|
||||
<svg width="279pt" height="101pt"
|
||||
viewBox="0.00 0.00 278.50 101.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 97.25)">
|
||||
<title>longest_increasing_subsequence_using_binary_search</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="for std::uint32_t">
|
||||
<polygon fill="#999999" stroke="#666666" points="139,-67.5 0,-67.5 0,-25.75 139,-25.75 139,-67.5"/>
|
||||
<text text-anchor="start" x="8" y="-54" font-family="Helvetica,sans-Serif" font-size="10.00">longest_increasing</text>
|
||||
<text text-anchor="start" x="8" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">_subsequence_using_binary</text>
|
||||
<text text-anchor="middle" x="69.5" y="-31.5" font-family="Helvetica,sans-Serif" font-size="10.00">_search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/empty.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="270.5,-93.25 175,-93.25 175,-74 270.5,-74 270.5,-93.25"/>
|
||||
<text text-anchor="middle" x="222.75" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::empty</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M139.49,-63.5C149.57,-65.97 159.8,-68.47 169.48,-70.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="168.51,-74.21 179.06,-73.18 170.18,-67.41 168.51,-74.21"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/lower_bound.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="267.88,-56.25 177.62,-56.25 177.62,-37 267.88,-37 267.88,-56.25"/>
|
||||
<text text-anchor="middle" x="222.75" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::lower_bound</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M139.49,-46.62C148.38,-46.62 157.39,-46.62 166.03,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="166.03,-50.13 176.03,-46.63 166.03,-43.13 166.03,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="266,-19.25 179.5,-19.25 179.5,0 266,0 266,-19.25"/>
|
||||
<text text-anchor="middle" x="222.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M139.49,-29.75C149.57,-27.28 159.8,-24.78 169.48,-22.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="170.18,-25.84 179.06,-20.07 168.51,-19.04 170.18,-25.84"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.4 KiB |
@@ -0,0 +1,77 @@
|
||||
<?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 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: longest_increasing_subsequence_using_binary_search Pages: 1 -->
|
||||
<svg width="279pt" height="101pt"
|
||||
viewBox="0.00 0.00 278.50 101.25" 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 97.25)">
|
||||
<title>longest_increasing_subsequence_using_binary_search</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="for std::uint32_t">
|
||||
<polygon fill="#999999" stroke="#666666" points="139,-67.5 0,-67.5 0,-25.75 139,-25.75 139,-67.5"/>
|
||||
<text text-anchor="start" x="8" y="-54" font-family="Helvetica,sans-Serif" font-size="10.00">longest_increasing</text>
|
||||
<text text-anchor="start" x="8" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">_subsequence_using_binary</text>
|
||||
<text text-anchor="middle" x="69.5" y="-31.5" font-family="Helvetica,sans-Serif" font-size="10.00">_search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/empty.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="270.5,-93.25 175,-93.25 175,-74 270.5,-74 270.5,-93.25"/>
|
||||
<text text-anchor="middle" x="222.75" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::empty</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M139.49,-63.5C149.57,-65.97 159.8,-68.47 169.48,-70.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="168.51,-74.21 179.06,-73.18 170.18,-67.41 168.51,-74.21"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/lower_bound.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="267.88,-56.25 177.62,-56.25 177.62,-37 267.88,-37 267.88,-56.25"/>
|
||||
<text text-anchor="middle" x="222.75" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::lower_bound</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M139.49,-46.62C148.38,-46.62 157.39,-46.62 166.03,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="166.03,-50.13 176.03,-46.63 166.03,-43.13 166.03,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="266,-19.25 179.5,-19.25 179.5,0 266,0 266,-19.25"/>
|
||||
<text text-anchor="middle" x="222.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M139.49,-29.75C149.57,-27.28 159.8,-24.78 169.48,-22.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="170.18,-25.84 179.06,-20.07 168.51,-19.04 170.18,-25.84"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.6 KiB |
@@ -0,0 +1,11 @@
|
||||
<map id="tests" name="tests">
|
||||
<area shape="rect" id="Node000001" title="Test cases for Longest Increasing Subsequence function." alt="" coords="5,55,56,80"/>
|
||||
<area shape="rect" id="Node000002" href="$d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#a313539d9a97fc6e121ce496873ba892e" title="for std::uint32_t" alt="" coords="104,40,289,95"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="56,65,88,65,88,70,56,70"/>
|
||||
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/empty.html#" title=" " alt="" coords="337,5,464,31"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="289,42,329,33,330,38,290,48"/>
|
||||
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/lower_bound.html#" title=" " alt="" coords="340,55,461,80"/>
|
||||
<area shape="poly" id="edge3_Node000002_Node000004" title=" " alt="" coords="290,65,325,65,325,70,290,70"/>
|
||||
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="343,104,458,130"/>
|
||||
<area shape="poly" id="edge4_Node000002_Node000005" title=" " alt="" coords="290,87,330,97,329,102,289,93"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
e8baaeea10ef15115946c4a0db45636a
|
||||
@@ -0,0 +1,121 @@
|
||||
<?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 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: tests Pages: 1 -->
|
||||
<svg width="352pt" height="101pt"
|
||||
viewBox="0.00 0.00 352.25 101.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 97.25)">
|
||||
<title>tests</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Test cases for Longest Increasing Subsequence function.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37.75,-56.25 0,-56.25 0,-37 37.75,-37 37.75,-56.25"/>
|
||||
<text text-anchor="middle" x="18.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#a313539d9a97fc6e121ce496873ba892e" target="_top" xlink:title="for std::uint32_t">
|
||||
<polygon fill="white" stroke="#666666" points="212.75,-67.5 73.75,-67.5 73.75,-25.75 212.75,-25.75 212.75,-67.5"/>
|
||||
<text text-anchor="start" x="81.75" y="-54" font-family="Helvetica,sans-Serif" font-size="10.00">longest_increasing</text>
|
||||
<text text-anchor="start" x="81.75" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">_subsequence_using_binary</text>
|
||||
<text text-anchor="middle" x="143.25" y="-31.5" font-family="Helvetica,sans-Serif" font-size="10.00">_search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.2,-46.62C44.99,-46.62 53.21,-46.62 62.01,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.89,-50.13 71.89,-46.63 61.89,-43.13 61.89,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/empty.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="344.25,-93.25 248.75,-93.25 248.75,-74 344.25,-74 344.25,-93.25"/>
|
||||
<text text-anchor="middle" x="296.5" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::empty</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M213.24,-63.5C223.32,-65.97 233.55,-68.47 243.23,-70.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="242.26,-74.21 252.81,-73.18 243.93,-67.41 242.26,-74.21"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/lower_bound.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="341.62,-56.25 251.38,-56.25 251.38,-37 341.62,-37 341.62,-56.25"/>
|
||||
<text text-anchor="middle" x="296.5" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::lower_bound</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3_Node000002_Node000004" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M213.24,-46.62C222.13,-46.62 231.14,-46.62 239.78,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="239.78,-50.13 249.78,-46.63 239.78,-43.13 239.78,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="339.75,-19.25 253.25,-19.25 253.25,0 339.75,0 339.75,-19.25"/>
|
||||
<text text-anchor="middle" x="296.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node5 -->
|
||||
<g id="edge4_Node000002_Node000005" class="edge">
|
||||
<title>Node2->Node5</title>
|
||||
<g id="a_edge4_Node000002_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M213.24,-29.75C223.32,-27.28 233.55,-24.78 243.23,-22.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="243.93,-25.84 252.81,-20.07 242.26,-19.04 243.93,-25.84"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.2 KiB |
@@ -0,0 +1,95 @@
|
||||
<?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 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: tests Pages: 1 -->
|
||||
<svg width="352pt" height="101pt"
|
||||
viewBox="0.00 0.00 352.25 101.25" 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 97.25)">
|
||||
<title>tests</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Test cases for Longest Increasing Subsequence function.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37.75,-56.25 0,-56.25 0,-37 37.75,-37 37.75,-56.25"/>
|
||||
<text text-anchor="middle" x="18.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#a313539d9a97fc6e121ce496873ba892e" target="_top" xlink:title="for std::uint32_t">
|
||||
<polygon fill="white" stroke="#666666" points="212.75,-67.5 73.75,-67.5 73.75,-25.75 212.75,-25.75 212.75,-67.5"/>
|
||||
<text text-anchor="start" x="81.75" y="-54" font-family="Helvetica,sans-Serif" font-size="10.00">longest_increasing</text>
|
||||
<text text-anchor="start" x="81.75" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">_subsequence_using_binary</text>
|
||||
<text text-anchor="middle" x="143.25" y="-31.5" font-family="Helvetica,sans-Serif" font-size="10.00">_search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.2,-46.62C44.99,-46.62 53.21,-46.62 62.01,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.89,-50.13 71.89,-46.63 61.89,-43.13 61.89,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/empty.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="344.25,-93.25 248.75,-93.25 248.75,-74 344.25,-74 344.25,-93.25"/>
|
||||
<text text-anchor="middle" x="296.5" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::empty</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M213.24,-63.5C223.32,-65.97 233.55,-68.47 243.23,-70.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="242.26,-74.21 252.81,-73.18 243.93,-67.41 242.26,-74.21"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/lower_bound.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="341.62,-56.25 251.38,-56.25 251.38,-37 341.62,-37 341.62,-56.25"/>
|
||||
<text text-anchor="middle" x="296.5" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::lower_bound</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3_Node000002_Node000004" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M213.24,-46.62C222.13,-46.62 231.14,-46.62 239.78,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="239.78,-50.13 249.78,-46.63 239.78,-43.13 239.78,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="339.75,-19.25 253.25,-19.25 253.25,0 339.75,0 339.75,-19.25"/>
|
||||
<text text-anchor="middle" x="296.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node5 -->
|
||||
<g id="edge4_Node000002_Node000005" class="edge">
|
||||
<title>Node2->Node5</title>
|
||||
<g id="a_edge4_Node000002_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M213.24,-29.75C223.32,-27.28 233.55,-24.78 243.23,-22.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="243.93,-25.84 252.81,-20.07 242.26,-19.04 243.93,-25.84"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.5 KiB |
@@ -0,0 +1,13 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="Node000001" title="Main function to run tests." alt="" coords="5,55,55,80"/>
|
||||
<area shape="rect" id="Node000002" href="$d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" title="Test cases for Longest Increasing Subsequence function." alt="" coords="103,55,153,80"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,65,88,65,88,70,55,70"/>
|
||||
<area shape="rect" id="Node000003" href="$d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#a313539d9a97fc6e121ce496873ba892e" title="for std::uint32_t" alt="" coords="201,40,386,95"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="154,65,185,65,185,70,154,70"/>
|
||||
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/empty.html#" title=" " alt="" coords="434,5,562,31"/>
|
||||
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="386,42,426,33,428,38,388,48"/>
|
||||
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/lower_bound.html#" title=" " alt="" coords="438,55,558,80"/>
|
||||
<area shape="poly" id="edge4_Node000003_Node000005" title=" " alt="" coords="387,65,422,65,422,70,387,70"/>
|
||||
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="440,104,556,130"/>
|
||||
<area shape="poly" id="edge5_Node000003_Node000006" title=" " alt="" coords="388,87,428,97,426,102,386,93"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
94853bf41b0075f98002cffdeb057c5e
|
||||
@@ -0,0 +1,139 @@
|
||||
<?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 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="425pt" height="101pt"
|
||||
viewBox="0.00 0.00 425.25 101.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 97.25)">
|
||||
<title>main</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Main function to run tests.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37,-56.25 0,-56.25 0,-37 37,-37 37,-56.25"/>
|
||||
<text text-anchor="middle" x="18.5" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="Test cases for Longest Increasing Subsequence function.">
|
||||
<polygon fill="white" stroke="#666666" points="110.75,-56.25 73,-56.25 73,-37 110.75,-37 110.75,-56.25"/>
|
||||
<text text-anchor="middle" x="91.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.14,-46.62C44.55,-46.62 53.37,-46.62 61.69,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.43,-50.13 71.43,-46.63 61.43,-43.13 61.43,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#a313539d9a97fc6e121ce496873ba892e" target="_top" xlink:title="for std::uint32_t">
|
||||
<polygon fill="white" stroke="#666666" points="285.75,-67.5 146.75,-67.5 146.75,-25.75 285.75,-25.75 285.75,-67.5"/>
|
||||
<text text-anchor="start" x="154.75" y="-54" font-family="Helvetica,sans-Serif" font-size="10.00">longest_increasing</text>
|
||||
<text text-anchor="start" x="154.75" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">_subsequence_using_binary</text>
|
||||
<text text-anchor="middle" x="216.25" y="-31.5" font-family="Helvetica,sans-Serif" font-size="10.00">_search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M111.2,-46.62C117.99,-46.62 126.21,-46.62 135.01,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.89,-50.13 144.89,-46.63 134.89,-43.13 134.89,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/empty.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="417.25,-93.25 321.75,-93.25 321.75,-74 417.25,-74 417.25,-93.25"/>
|
||||
<text text-anchor="middle" x="369.5" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::empty</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M286.24,-63.5C296.32,-65.97 306.55,-68.47 316.23,-70.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="315.26,-74.21 325.81,-73.18 316.93,-67.41 315.26,-74.21"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/lower_bound.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="414.62,-56.25 324.38,-56.25 324.38,-37 414.62,-37 414.62,-56.25"/>
|
||||
<text text-anchor="middle" x="369.5" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::lower_bound</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4_Node000003_Node000005" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M286.24,-46.62C295.13,-46.62 304.14,-46.62 312.78,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="312.78,-50.13 322.78,-46.63 312.78,-43.13 312.78,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="412.75,-19.25 326.25,-19.25 326.25,0 412.75,0 412.75,-19.25"/>
|
||||
<text text-anchor="middle" x="369.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node6 -->
|
||||
<g id="edge5_Node000003_Node000006" class="edge">
|
||||
<title>Node3->Node6</title>
|
||||
<g id="a_edge5_Node000003_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M286.24,-29.75C296.32,-27.28 306.55,-24.78 316.23,-22.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="316.93,-25.84 325.81,-20.07 315.26,-19.04 316.93,-25.84"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.1 KiB |
@@ -0,0 +1,113 @@
|
||||
<?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 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="425pt" height="101pt"
|
||||
viewBox="0.00 0.00 425.25 101.25" 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 97.25)">
|
||||
<title>main</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Main function to run tests.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37,-56.25 0,-56.25 0,-37 37,-37 37,-56.25"/>
|
||||
<text text-anchor="middle" x="18.5" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="Test cases for Longest Increasing Subsequence function.">
|
||||
<polygon fill="white" stroke="#666666" points="110.75,-56.25 73,-56.25 73,-37 110.75,-37 110.75,-56.25"/>
|
||||
<text text-anchor="middle" x="91.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.14,-46.62C44.55,-46.62 53.37,-46.62 61.69,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.43,-50.13 71.43,-46.63 61.43,-43.13 61.43,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d9/d5f/longest__increasing__subsequence__using__binary__search_8cpp.html#a313539d9a97fc6e121ce496873ba892e" target="_top" xlink:title="for std::uint32_t">
|
||||
<polygon fill="white" stroke="#666666" points="285.75,-67.5 146.75,-67.5 146.75,-25.75 285.75,-25.75 285.75,-67.5"/>
|
||||
<text text-anchor="start" x="154.75" y="-54" font-family="Helvetica,sans-Serif" font-size="10.00">longest_increasing</text>
|
||||
<text text-anchor="start" x="154.75" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">_subsequence_using_binary</text>
|
||||
<text text-anchor="middle" x="216.25" y="-31.5" font-family="Helvetica,sans-Serif" font-size="10.00">_search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M111.2,-46.62C117.99,-46.62 126.21,-46.62 135.01,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.89,-50.13 144.89,-46.63 134.89,-43.13 134.89,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/empty.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="417.25,-93.25 321.75,-93.25 321.75,-74 417.25,-74 417.25,-93.25"/>
|
||||
<text text-anchor="middle" x="369.5" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::empty</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M286.24,-63.5C296.32,-65.97 306.55,-68.47 316.23,-70.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="315.26,-74.21 325.81,-73.18 316.93,-67.41 315.26,-74.21"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/lower_bound.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="414.62,-56.25 324.38,-56.25 324.38,-37 414.62,-37 414.62,-56.25"/>
|
||||
<text text-anchor="middle" x="369.5" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::lower_bound</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4_Node000003_Node000005" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M286.24,-46.62C295.13,-46.62 304.14,-46.62 312.78,-46.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="312.78,-50.13 322.78,-46.63 312.78,-43.13 312.78,-50.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="412.75,-19.25 326.25,-19.25 326.25,0 412.75,0 412.75,-19.25"/>
|
||||
<text text-anchor="middle" x="369.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node6 -->
|
||||
<g id="edge5_Node000003_Node000006" class="edge">
|
||||
<title>Node3->Node6</title>
|
||||
<g id="a_edge5_Node000003_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M286.24,-29.75C296.32,-27.28 306.55,-24.78 316.23,-22.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="316.93,-25.84 325.81,-20.07 315.26,-19.04 316.93,-25.84"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.4 KiB |