mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
234 lines
18 KiB
HTML
234 lines
18 KiB
HTML
<!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.9.5"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Algorithms_in_C: node Struct Reference</title>
|
|
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../jquery.js"></script>
|
|
<script type="text/javascript" src="../../dynsections.js"></script>
|
|
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../resize.js"></script>
|
|
<script type="text/javascript" src="../../navtreedata.js"></script>
|
|
<script type="text/javascript" src="../../navtree.js"></script>
|
|
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
|
<script type="text/javascript" src="../../search/search.js"></script>
|
|
<script type="text/x-mathjax-config">
|
|
MathJax.Hub.Config({
|
|
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
|
jax: ["input/TeX","output/HTML-CSS"],
|
|
});
|
|
</script>
|
|
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
|
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr 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.9.5 -->
|
|
<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" 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');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function(){initNavTree('d5/da1/structnode.html','../../'); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<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="#pub-attribs">Data Fields</a> </div>
|
|
<div class="headertitle"><div class="title">node Struct Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><a class="el" href="../../db/d8b/struct_node.html" title="Node, the basic data structure of the tree.">Node</a>, the basic data structure in the tree.
|
|
<a href="../../d5/da1/structnode.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="../../d1/dbe/include_8h_source.html">include.h</a>></code></p>
|
|
<div class="dynheader">
|
|
Collaboration diagram for node:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/d1f/structnode__coll__graph.svg" width="143" height="128"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
|
</div>
|
|
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
|
|
Data Fields</h2></td></tr>
|
|
<tr class="memitem:af7109e6ffd82cbbb705e486fd0ce92f0"><td class="memItemLeft" align="right" valign="top"><a id="af7109e6ffd82cbbb705e486fd0ce92f0" name="af7109e6ffd82cbbb705e486fd0ce92f0"></a>
|
|
struct <a class="el" href="../../d5/da1/structnode.html">node</a> * </td><td class="memItemRight" valign="bottom"><b>left</b></td></tr>
|
|
<tr class="memdesc:af7109e6ffd82cbbb705e486fd0ce92f0"><td class="mdescLeft"> </td><td class="mdescRight">left child <br /></td></tr>
|
|
<tr class="separator:af7109e6ffd82cbbb705e486fd0ce92f0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a51e160f22dc6064bac4a4f9f1d931c2c"><td class="memItemLeft" align="right" valign="top"><a id="a51e160f22dc6064bac4a4f9f1d931c2c" name="a51e160f22dc6064bac4a4f9f1d931c2c"></a>
|
|
struct <a class="el" href="../../d5/da1/structnode.html">node</a> * </td><td class="memItemRight" valign="bottom"><b>right</b></td></tr>
|
|
<tr class="memdesc:a51e160f22dc6064bac4a4f9f1d931c2c"><td class="mdescLeft"> </td><td class="mdescRight">right child <br /></td></tr>
|
|
<tr class="separator:a51e160f22dc6064bac4a4f9f1d931c2c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2d890bb9f6af0ffd73fe79b21124c2a2"><td class="memItemLeft" align="right" valign="top"><a id="a2d890bb9f6af0ffd73fe79b21124c2a2" name="a2d890bb9f6af0ffd73fe79b21124c2a2"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>data</b></td></tr>
|
|
<tr class="memdesc:a2d890bb9f6af0ffd73fe79b21124c2a2"><td class="mdescLeft"> </td><td class="mdescRight">data of the node <br /></td></tr>
|
|
<tr class="separator:a2d890bb9f6af0ffd73fe79b21124c2a2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2783f1aec750191646305988f7e28756"><td class="memItemLeft" align="right" valign="top"><a id="a2783f1aec750191646305988f7e28756" name="a2783f1aec750191646305988f7e28756"></a>
|
|
struct <a class="el" href="../../d5/da1/structnode.html">node</a> * </td><td class="memItemRight" valign="bottom"><b>leftNode</b></td></tr>
|
|
<tr class="separator:a2783f1aec750191646305988f7e28756"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aaf2ec5ed1bb563465cbe2e9d16d74d1e"><td class="memItemLeft" align="right" valign="top"><a id="aaf2ec5ed1bb563465cbe2e9d16d74d1e" name="aaf2ec5ed1bb563465cbe2e9d16d74d1e"></a>
|
|
struct <a class="el" href="../../d5/da1/structnode.html">node</a> * </td><td class="memItemRight" valign="bottom"><b>rightNode</b></td></tr>
|
|
<tr class="separator:aaf2ec5ed1bb563465cbe2e9d16d74d1e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a707bf3f1eeeaf8974e7e8e90f7bfd6a1"><td class="memItemLeft" align="right" valign="top"><a id="a707bf3f1eeeaf8974e7e8e90f7bfd6a1" name="a707bf3f1eeeaf8974e7e8e90f7bfd6a1"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>val</b></td></tr>
|
|
<tr class="separator:a707bf3f1eeeaf8974e7e8e90f7bfd6a1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8139af7faac30d394e198365a999b54d"><td class="memItemLeft" align="right" valign="top"><a id="a8139af7faac30d394e198365a999b54d" name="a8139af7faac30d394e198365a999b54d"></a>
|
|
struct <a class="el" href="../../d5/da1/structnode.html">node</a> * </td><td class="memItemRight" valign="bottom"><b>par</b></td></tr>
|
|
<tr class="separator:a8139af7faac30d394e198365a999b54d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a310a09cb5a882788781a5287096ad425"><td class="memItemLeft" align="right" valign="top"><a id="a310a09cb5a882788781a5287096ad425" name="a310a09cb5a882788781a5287096ad425"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>color</b></td></tr>
|
|
<tr class="separator:a310a09cb5a882788781a5287096ad425"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab4b1f345158daee0725acecd5ba817b1"><td class="memItemLeft" align="right" valign="top"><a id="ab4b1f345158daee0725acecd5ba817b1" name="ab4b1f345158daee0725acecd5ba817b1"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>vertex</b></td></tr>
|
|
<tr class="separator:ab4b1f345158daee0725acecd5ba817b1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a111a569ab2765add9b91c9f94cf9f063"><td class="memItemLeft" align="right" valign="top"><a id="a111a569ab2765add9b91c9f94cf9f063" name="a111a569ab2765add9b91c9f94cf9f063"></a>
|
|
struct <a class="el" href="../../d5/da1/structnode.html">node</a> * </td><td class="memItemRight" valign="bottom"><b>next</b></td></tr>
|
|
<tr class="memdesc:a111a569ab2765add9b91c9f94cf9f063"><td class="mdescLeft"> </td><td class="mdescRight">pointer to the node <br /></td></tr>
|
|
<tr class="separator:a111a569ab2765add9b91c9f94cf9f063"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac8973feda870a119ccdc25910254db0c"><td class="memItemLeft" align="right" valign="top"><a id="ac8973feda870a119ccdc25910254db0c" name="ac8973feda870a119ccdc25910254db0c"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>info</b></td></tr>
|
|
<tr class="separator:ac8973feda870a119ccdc25910254db0c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1aa632fdf50713d86192a96f8191851b"><td class="memItemLeft" align="right" valign="top"><a id="a1aa632fdf50713d86192a96f8191851b" name="a1aa632fdf50713d86192a96f8191851b"></a>
|
|
struct <a class="el" href="../../d5/da1/structnode.html">node</a> * </td><td class="memItemRight" valign="bottom"><b>link</b></td></tr>
|
|
<tr class="separator:a1aa632fdf50713d86192a96f8191851b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7f5750a90eac14a9a21d5b976cd8b8a7"><td class="memItemLeft" align="right" valign="top"><a id="a7f5750a90eac14a9a21d5b976cd8b8a7" name="a7f5750a90eac14a9a21d5b976cd8b8a7"></a>
|
|
struct <a class="el" href="../../d5/da1/structnode.html">node</a> * </td><td class="memItemRight" valign="bottom"><b>pre</b></td></tr>
|
|
<tr class="separator:a7f5750a90eac14a9a21d5b976cd8b8a7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6f9100a3fe81d82776ce47ecdba94691"><td class="memItemLeft" align="right" valign="top"><a id="a6f9100a3fe81d82776ce47ecdba94691" name="a6f9100a3fe81d82776ce47ecdba94691"></a>
|
|
char </td><td class="memItemRight" valign="bottom"><b>data</b></td></tr>
|
|
<tr class="separator:a6f9100a3fe81d82776ce47ecdba94691"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac0c8b57ac0a76d72588561c81481c454"><td class="memItemLeft" align="right" valign="top"><a id="ac0c8b57ac0a76d72588561c81481c454" name="ac0c8b57ac0a76d72588561c81481c454"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>ID</b></td></tr>
|
|
<tr class="memdesc:ac0c8b57ac0a76d72588561c81481c454"><td class="mdescLeft"> </td><td class="mdescRight">ID of the process node. <br /></td></tr>
|
|
<tr class="separator:ac0c8b57ac0a76d72588561c81481c454"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5507c3c76ddbda9c482749f3a8a8f0cc"><td class="memItemLeft" align="right" valign="top"><a id="a5507c3c76ddbda9c482749f3a8a8f0cc" name="a5507c3c76ddbda9c482749f3a8a8f0cc"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>AT</b></td></tr>
|
|
<tr class="memdesc:a5507c3c76ddbda9c482749f3a8a8f0cc"><td class="mdescLeft"> </td><td class="mdescRight">Arrival Time of the process node. <br /></td></tr>
|
|
<tr class="separator:a5507c3c76ddbda9c482749f3a8a8f0cc"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac0a6453f996d4c362c015fd4348ecc6e"><td class="memItemLeft" align="right" valign="top"><a id="ac0a6453f996d4c362c015fd4348ecc6e" name="ac0a6453f996d4c362c015fd4348ecc6e"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>BT</b></td></tr>
|
|
<tr class="memdesc:ac0a6453f996d4c362c015fd4348ecc6e"><td class="mdescLeft"> </td><td class="mdescRight">Burst Time of the process node. <br /></td></tr>
|
|
<tr class="separator:ac0a6453f996d4c362c015fd4348ecc6e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a44e51013eb31fc1f17866ca9fe8ac75b"><td class="memItemLeft" align="right" valign="top"><a id="a44e51013eb31fc1f17866ca9fe8ac75b" name="a44e51013eb31fc1f17866ca9fe8ac75b"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>priority</b></td></tr>
|
|
<tr class="memdesc:a44e51013eb31fc1f17866ca9fe8ac75b"><td class="mdescLeft"> </td><td class="mdescRight">Priority of the process node. <br /></td></tr>
|
|
<tr class="separator:a44e51013eb31fc1f17866ca9fe8ac75b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aece40a25d30d3e0d2135007642b64882"><td class="memItemLeft" align="right" valign="top"><a id="aece40a25d30d3e0d2135007642b64882" name="aece40a25d30d3e0d2135007642b64882"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>CT</b></td></tr>
|
|
<tr class="memdesc:aece40a25d30d3e0d2135007642b64882"><td class="mdescLeft"> </td><td class="mdescRight">Completion Time of the process node. <br /></td></tr>
|
|
<tr class="separator:aece40a25d30d3e0d2135007642b64882"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a878d22393f374f3861035e35b9edd653"><td class="memItemLeft" align="right" valign="top"><a id="a878d22393f374f3861035e35b9edd653" name="a878d22393f374f3861035e35b9edd653"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>WT</b></td></tr>
|
|
<tr class="memdesc:a878d22393f374f3861035e35b9edd653"><td class="mdescLeft"> </td><td class="mdescRight">Waiting Time of the process node. <br /></td></tr>
|
|
<tr class="separator:a878d22393f374f3861035e35b9edd653"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abbe30696293849bebed90520b8cf7ba3"><td class="memItemLeft" align="right" valign="top"><a id="abbe30696293849bebed90520b8cf7ba3" name="abbe30696293849bebed90520b8cf7ba3"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><b>TAT</b></td></tr>
|
|
<tr class="memdesc:abbe30696293849bebed90520b8cf7ba3"><td class="mdescLeft"> </td><td class="mdescRight">Turn Around Time of the process node. <br /></td></tr>
|
|
<tr class="separator:abbe30696293849bebed90520b8cf7ba3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p ><a class="el" href="../../db/d8b/struct_node.html" title="Node, the basic data structure of the tree.">Node</a>, the basic data structure in the tree. </p>
|
|
<p >for assert</p>
|
|
<p >Kyler Smith, 2017 <a class="el" href="../../dd/d10/struct_stack.html" title="for printf() and scanf()">Stack</a> data structure implementation.</p>
|
|
<p >INCLUDES.</p>
|
|
<p >Defining the structure of the node which contains 'data' (type : integer), two pointers 'next' and 'pre' (type : struct node).</p>
|
|
<p >creating a stucture with 'data'(type:int), two pointers 'next','pre' (type: struct node) .</p>
|
|
<p >for boolean data type for IO operations (<code>printf</code>) for memory allocation eg: <code>malloc</code>, <code>realloc</code>, <code>free</code>, <code>exit</code></p>
|
|
<p >Structure to represent a process </p>
|
|
</div><hr/>The documentation for this struct was generated from the following files:<ul>
|
|
<li>data_structures/binary_trees/<a class="el" href="../../da/d02/binary__search__tree_8c.html">binary_search_tree.c</a></li>
|
|
<li>data_structures/binary_trees/create_node.c</li>
|
|
<li>data_structures/binary_trees/red_black_tree.c</li>
|
|
<li>data_structures/graphs/bfs.c</li>
|
|
<li>data_structures/graphs/dfs.c</li>
|
|
<li>data_structures/graphs/queue.c</li>
|
|
<li>data_structures/graphs/strongly_connected_components.c</li>
|
|
<li>data_structures/graphs/topological_sort.c</li>
|
|
<li>data_structures/linked_list/ascending_priority_queue.c</li>
|
|
<li>data_structures/linked_list/circular_linked_list.c</li>
|
|
<li>data_structures/linked_list/merge_linked_lists.c</li>
|
|
<li>data_structures/linked_list/queue_linked_list.c</li>
|
|
<li>data_structures/linked_list/singly_link_list_deletion.c</li>
|
|
<li>data_structures/linked_list/stack_using_linked_lists.c</li>
|
|
<li>data_structures/queue/<a class="el" href="../../d1/dbe/include_8h_source.html">include.h</a></li>
|
|
<li>data_structures/stack.c</li>
|
|
<li>data_structures/stack/parenthesis.c</li>
|
|
<li>process_scheduling_algorithms/<a class="el" href="../../d2/d87/non__preemptive__priority__scheduling_8c.html">non_preemptive_priority_scheduling.c</a></li>
|
|
</ul>
|
|
</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="../../d5/da1/structnode.html">node</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|