@@ -78,73 +78,75 @@ Binary Search
7878-------------
7979
8080* Functions and their uses
81- - .. function:: binary_search.search(List, key)
8281
83- |**List** : *Sorted* list in which the key is to be searched
84- |**key** : key to be searched in the list
85- |**Return Value** : returns the position (index) of the key if key found, else returns -1
82+ .. function :: binary_search.search(List, key)
8683
87- - .. function:: binary_search.time_complexities()
84+ - **List ** : *Sorted * list in which the key is to be searched
85+ - **key ** : key to be searched in the list
86+ - **Return Value ** : returns the position (index) of the key if key found, else returns -1
8887
89- | **Return Value** : returns time complexities (Best, Average, Worst )
88+ .. function :: binary_search.time_complexities( )
9089
91- - .. function:: binary_search.get_code( )
90+ - ** Return Value ** : returns time complexities (Best, Average, Worst )
9291
93- |**Return Value** : returns the code for the ``binary_search.search()`` function
92+ .. function :: binary_search.get_code()
93+
94+ - **Return Value ** : returns the code for the ``binary_search.search() `` function
9495
9596Linear Search
9697-------------
9798
9899* Functions and their uses
99100
100- - .. function:: linear_search.search(List, key)
101+ .. function :: linear_search.search(List, key)
102+
103+ - **List ** : the list in which item is to searched
104+ - **key ** : key to be searched in the list
105+ - **Return Value ** : returns the position (index) of the key if key found, else returns -1
101106
102- |**List** : the list in which item is to searched
103- |**key** : key to be searched in the list
104- |**Return Value** : returns the position (index) of the key if key found, else returns -1
107+ .. function :: linear_search.time_complexities()
105108
106- - .. function:: linear_search.time_complexities( )
109+ - ** Return value ** : returns time complexities (Best, Average, Worst )
107110
108- |**Return value** : returns time complexities (Best, Average, Worst)
109- - .. function:: linear_search.get_code()
111+ .. function :: linear_search.get_code()
110112
111- | **Return Value** : returns the code for the ``linear_search.search()`` function
113+ - **Return Value ** : returns the code for the ``linear_search.search() `` function
112114
113115Breadth First Search
114116--------------------
115117
116118* Functions and their uses
117119
118- - .. function:: breadth_first_search.search(graph, startVertex)
120+ .. function :: breadth_first_search.search(graph, startVertex)
119121
120- | **graph** : takes the graph data structures with edges and vertices
121- | **startVertex** : it tells the function the vertex to start with
122- | **Return Value** : returns the bfs for the ``graph``
122+ - **graph ** : takes the graph data structures with edges and vertices
123+ - **startVertex ** : it tells the function the vertex to start with
124+ - **Return Value ** : returns the bfs for the ``graph ``
123125
124- - .. function:: breadth_first_search.time_complexities()
126+ .. function :: breadth_first_search.time_complexities()
125127
126- **Return Value ** : returns time complexities
128+ - **Return Value ** : returns time complexities
127129
128- - .. function:: breadth_first_search.get_code()
130+ .. function :: breadth_first_search.get_code()
129131
130- **Return Value ** : returns the code for the ``breadth_first_search.search() `` function
132+ - **Return Value ** : returns the code for the ``breadth_first_search.search() `` function
131133
132134Depth First Search
133135------------------
134136
135137* Functions and their uses
136138
137- - .. function:: breadth_first_search.search(graph, start, path)
139+ .. function :: breadth_first_search.search(graph, start, path)
138140
139- | **graph** : takes the graph data structures with edges and vertices
140- | **start** : it tells the function the vertex to start with
141- | **path** : returns the list containing the required dfs
142- | **Return Value** : returns the bfs for the ``graph``
141+ - **graph ** : takes the graph data structures with edges and vertices
142+ - **start ** : it tells the function the vertex to start with
143+ - **path ** : returns the list containing the required dfs
144+ - **Return Value ** : returns the bfs for the ``graph ``
143145
144- - .. function:: breadth_first_search.time_complexities()
146+ .. function :: breadth_first_search.time_complexities()
145147
146- **Return Value ** : returns time complexities
148+ - **Return Value ** : returns time complexities
147149
148- - .. function:: breadth_first_search.get_code()
150+ .. function :: breadth_first_search.get_code()
149151
150- **Return Value ** : returns the code for the ``depth_first_search.search() `` function
152+ - **Return Value ** : returns the code for the ``depth_first_search.search() `` function
0 commit comments