@@ -78,73 +78,75 @@ Binary Search
78
78
-------------
79
79
80
80
* Functions and their uses
81
- - .. function:: binary_search.search(List, key)
82
81
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)
86
83
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
88
87
89
- | **Return Value** : returns time complexities (Best, Average, Worst )
88
+ .. function :: binary_search.time_complexities( )
90
89
91
- - .. function:: binary_search.get_code( )
90
+ - ** Return Value ** : returns time complexities (Best, Average, Worst )
92
91
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
94
95
95
96
Linear Search
96
97
-------------
97
98
98
99
* Functions and their uses
99
100
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
101
106
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()
105
108
106
- - .. function:: linear_search.time_complexities( )
109
+ - ** Return value ** : returns time complexities (Best, Average, Worst )
107
110
108
- |**Return value** : returns time complexities (Best, Average, Worst)
109
- - .. function:: linear_search.get_code()
111
+ .. function :: linear_search.get_code()
110
112
111
- | **Return Value** : returns the code for the ``linear_search.search()`` function
113
+ - **Return Value ** : returns the code for the ``linear_search.search() `` function
112
114
113
115
Breadth First Search
114
116
--------------------
115
117
116
118
* Functions and their uses
117
119
118
- - .. function:: breadth_first_search.search(graph, startVertex)
120
+ .. function :: breadth_first_search.search(graph, startVertex)
119
121
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 ``
123
125
124
- - .. function:: breadth_first_search.time_complexities()
126
+ .. function :: breadth_first_search.time_complexities()
125
127
126
- **Return Value ** : returns time complexities
128
+ - **Return Value ** : returns time complexities
127
129
128
- - .. function:: breadth_first_search.get_code()
130
+ .. function :: breadth_first_search.get_code()
129
131
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
131
133
132
134
Depth First Search
133
135
------------------
134
136
135
137
* Functions and their uses
136
138
137
- - .. function:: breadth_first_search.search(graph, start, path)
139
+ .. function :: breadth_first_search.search(graph, start, path)
138
140
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 ``
143
145
144
- - .. function:: breadth_first_search.time_complexities()
146
+ .. function :: breadth_first_search.time_complexities()
145
147
146
- **Return Value ** : returns time complexities
148
+ - **Return Value ** : returns time complexities
147
149
148
- - .. function:: breadth_first_search.get_code()
150
+ .. function :: breadth_first_search.get_code()
149
151
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