| Graph(size_t N, const std::vector< std::pair< int, int > > &undirected_edges) | graph::Graph | inline |
| level | graph::RootedTree | |
- | neighbors | graph::Graph | |
+ | neighbors | graph::Graph | |
| number_of_vertices() const | graph::Graph | inline |
| parent | graph::RootedTree | |
| populate_parents() | graph::RootedTree | inlineprotected |
diff --git a/d8/d95/vector__ops_8hpp_source.html b/d8/d95/vector__ops_8hpp_source.html
index 4b193d573..5e62d04c6 100644
--- a/d8/d95/vector__ops_8hpp_source.html
+++ b/d8/d95/vector__ops_8hpp_source.html
@@ -622,7 +622,7 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
void uniform_random_initialization(std::vector< std::valarray< T >> &A, const std::pair< size_t, size_t > &shape, const T &low, const T &high)
Definition: vector_ops.hpp:166
T setprecision(T... args)
-std::vector< bool > breadth_first_search(const std::vector< std::vector< int >> &graph, int start)
Function performs the breadth first search algorithm over the graph.
Definition: breadth_first_search.cpp:95
+std::vector< bool > breadth_first_search(const std::vector< std::vector< int >> &graph, int start)
Function performs the breadth first search algorithm over the graph.
Definition: breadth_first_search.cpp:96
int key
key value
Definition: linear_probing_hash_table.cpp:37
@@ -645,7 +645,7 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
DenseLayer & operator=(const DenseLayer &layer)=default
Functions for checking whether a graph is bipartite or not.
-Graph(size_t N, const std::vector< std::pair< int, int > > &undirected_edges)
Populate the adjacency list for each vertex in the graph. Assumes that evey edge is a pair of valid v...
Definition: lowest_common_ancestor.cpp:61
+Graph(size_t N, const std::vector< std::pair< int, int > > &undirected_edges)
Populate the adjacency list for each vertex in the graph. Assumes that evey edge is a pair of valid v...
Definition: lowest_common_ancestor.cpp:62
#define MAX
Definition: fibonacci_fast.cpp:27
std::valarray< T > pop_back(const std::valarray< T > &A)
Definition: vector_ops.hpp:119
void addVertices(unsigned int num=1)
Definition: cycle_check_directed_graph.cpp:118
@@ -665,7 +665,7 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
Definition: linear_probing_hash_table.cpp:35
-std::vector< int > level
Stores the distance from the root.
Definition: lowest_common_ancestor.cpp:105
+std::vector< int > level
Stores the distance from the root.
Definition: lowest_common_ancestor.cpp:106
void removalInfo(int key)
Definition: double_hash_hash_table.cpp:227
bool find(int x, int h) const
Find if a value and corresponding hash exist.
Definition: chaining.cpp:101
@@ -722,7 +722,7 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
static void test1()
Definition: hamiltons_cycle.cpp:81
bool searchingProber(const Entry &entry, int key)
Definition: linear_probing_hash_table.cpp:110
int predict(const std::vector< double > &x, double *out=nullptr)
Definition: adaline_learning.cpp:95
-void populate_parents()
Calculate the parents for all the vertices in the tree. Implements the breadth first search algorithm...
Definition: lowest_common_ancestor.cpp:116
+void populate_parents()
Calculate the parents for all the vertices in the tree. Implements the breadth first search algorithm...
Definition: lowest_common_ancestor.cpp:117
Machine learning algorithms.
std::vector< std::valarray< T > > operator-(const std::vector< std::valarray< T >> &A, const std::vector< std::valarray< T >> &B)
Definition: vector_ops.hpp:433
std::vector< std::valarray< T > > transpose(const std::vector< std::valarray< T >> &A)
Definition: vector_ops.hpp:382
@@ -749,7 +749,7 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
int stack_idx
pointer to track stack index
Definition: paranthesis_matching.cpp:23
void evaluate_from_csv(const std::string &file_name, const bool &last_label, const bool &normalize, const int &slip_lines=1)
Definition: neural_network.cpp:638
-int main()
Definition: breadth_first_search.cpp:161
+int main()
Definition: breadth_first_search.cpp:162
void test1()
Definition: kohonen_som_trace.cpp:233
void add(int x, int h)
create and add a new node with a give value and at a given height
Definition: chaining.cpp:45
@@ -778,7 +778,8 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
Definition: cycle_check_directed_graph.cpp:158
void evaluate(const std::vector< std::vector< std::valarray< double >>> &X, const std::vector< std::vector< std::valarray< double >>> &Y)
Definition: neural_network.cpp:606
void unit_matrix_initialization(std::vector< std::valarray< T >> &A, const std::pair< size_t, size_t > &shape)
Definition: vector_ops.hpp:193
-std::vector< int > parent
Stores parent of every vertex and for root its own index. The root is technically not its own parent,...
Definition: lowest_common_ancestor.cpp:103
+std::vector< std::vector< int > > up
for every vertex stores a list of its ancestors by powers of two For each vertex, the first element o...
Definition: lowest_common_ancestor.cpp:206
+std::vector< int > parent
Stores parent of every vertex and for root its own index. The root is technically not its own parent,...
Definition: lowest_common_ancestor.cpp:104
int dijkstra(std::vector< std::vector< std::pair< int, int >>> *adj, int s, int t)
Function runs the dijkstra algorithm for some source vertex and target vertex in the graph and return...
Definition: dijkstra.cpp:66
static bool isCyclicDFSHelper(AdjList const &adjList, std::vector< nodeStates > *state, unsigned int node)
Definition: cycle_check_directed_graph.cpp:170
DenseLayer(const int &neurons, const std::string &activation, const std::vector< std::valarray< double >> &kernal)
Definition: neural_network.cpp:183
@@ -802,7 +803,6 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
const double eta
learning rate of the algorithm
Definition: adaline_learning.cpp:207
void fit(const std::vector< std::vector< std::valarray< double >>> &X_, const std::vector< std::vector< std::valarray< double >>> &Y_, const int &epochs=100, const double &learning_rate=0.01, const size_t &batch_size=32, const bool &shuffle=true)
Definition: neural_network.cpp:485
-std::vector< std::vector< int > > neighbors
for each vertex it stores a list indicies of its neighbors
Definition: lowest_common_ancestor.cpp:78
Various activation functions used in Neural network.
double sigmoid(const double &x)
Definition: neural_network.cpp:60
@@ -857,6 +857,7 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
void print(uint32_t N, const std::vector< bool > &is_prime)
Definition: sieve_of_eratosthenes.cpp:44
int main(int argc, char **argv)
Definition: hamiltons_cycle.cpp:142
+std::vector< std::vector< int > > neighbors
for each vertex it stores a list indicies of its neighbors
Definition: lowest_common_ancestor.cpp:77
Graph(unsigned int vertices, AdjList &&adjList)
Definition: cycle_check_directed_graph.cpp:76
Definition: neural_network.cpp:247
@@ -876,7 +877,7 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
Entry(int key=notPresent)
constructor
Definition: quadratic_probing_hash_table.cpp:38
Type top()
Definition: stack.h:93
Definition: jarvis_algorithm.cpp:55
-void tests()
Definition: breadth_first_search.cpp:121
+void tests()
Definition: breadth_first_search.cpp:122
bool hamilton_cycle(const std::vector< std::vector< bool >> &routes)
Definition: hamiltons_cycle.cpp:30
void tests()
Definition: connected_components.cpp:93
NeuralNetwork(const std::vector< std::pair< int, std::string >> &config, const std::vector< std::vector< std::valarray< double >>> &kernals)
Definition: neural_network.cpp:256
@@ -916,7 +917,7 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
constexpr double MIN_DISTANCE
Definition: kohonen_som_topology.cpp:129
void removalInfo(int key)
Definition: linear_probing_hash_table.cpp:201
void show(const struct tower *const F, const struct tower *const T, const struct tower *const U)
Definition: tower_of_hanoi.cpp:19
-int number_of_vertices() const
Definition: lowest_common_ancestor.cpp:73
+int number_of_vertices() const
Definition: lowest_common_ancestor.cpp:74
Definition: huffman.cpp:28
double dsigmoid(const double &x)
Definition: neural_network.cpp:67
@@ -924,14 +925,14 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
double get_clock_diff(clock_t start_t, clock_t end_t)
Definition: kohonen_som_topology.cpp:577
void add(int key)
Definition: double_hash_hash_table.cpp:185
int doubleHash(int key, bool searching)
Performs double hashing to resolve collisions.
Definition: double_hash_hash_table.cpp:71
-int main()
Definition: lowest_common_ancestor.cpp:256
+int main()
Definition: lowest_common_ancestor.cpp:255
hash_chain(int mod)
Construct a new chain object.
Definition: chaining.cpp:35
Various functions for vectors associated with NeuralNetwork (aka Multilayer Perceptron).
bool search(const std::string &word)
Definition: trie_modern.cpp:132
-Definition: lowest_common_ancestor.cpp:52
+Definition: lowest_common_ancestor.cpp:53
double identity_function(const double &x)
Definition: neural_network.cpp:112
void explore(const std::vector< std::vector< int >> *adj, int u, std::vector< bool > *visited)
Utility function for depth first seach algorithm this function explores the vertex which is passed in...
Definition: connected_components.cpp:59
@@ -966,7 +967,7 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
std::vector< std::valarray< T > > operator+(const std::vector< std::valarray< T >> &A, const std::vector< std::valarray< T >> &B)
Definition: vector_ops.hpp:406
Definition: neural_network.cpp:125
void test_2d_classes(std::vector< std::valarray< double >> *data)
Definition: kohonen_som_topology.cpp:330
-int root
Index of the root vertex.
Definition: lowest_common_ancestor.cpp:107
+int root
Index of the root vertex.
Definition: lowest_common_ancestor.cpp:108
Definition: line_segment_intersection.cpp:12
std::vector< std::valarray< T > > hadamard_product(const std::vector< std::valarray< T >> &A, const std::vector< std::valarray< T >> &B)
Definition: vector_ops.hpp:494
@@ -984,7 +985,6 @@ $(document).ready(function(){initNavTree('d8/d95/vector__ops_8hpp_source.html','
void spirograph(std::array< std::pair< double, double >, N > *points, double l, double k, double rot)
Definition: spirograph.cpp:70
int lowest_common_ancestor(int u, int v) const
Query the structure to find the lowest common ancestor. Assumes that the provided numbers are valid i...
Definition: lowest_common_ancestor.cpp:164
-std::vector< std::vector< int > > up
for every vertex stores a list of its ancestors by powers of two For each vertex, the first element o...
Definition: lowest_common_ancestor.cpp:206
void display()
Display the chain.
Definition: chaining.cpp:63
int main()
Definition: shortest_common_supersequence.cpp:164
void quickSort(int arr[], int low, int high)
Definition: quick_sort.cpp:63
diff --git a/d9/d23/classgraph_1_1_lowest_common_ancestor.html b/d9/d23/classgraph_1_1_lowest_common_ancestor.html
index 340102c4a..8d701020c 100644
--- a/d9/d23/classgraph_1_1_lowest_common_ancestor.html
+++ b/d9/d23/classgraph_1_1_lowest_common_ancestor.html
@@ -120,10 +120,10 @@ Public Attributes
|
const RootedTree & | tree |
| |
-|
-std::vector< std::vector< int > > | up |
-| | for every vertex stores a list of its ancestors by powers of two For each vertex, the first element of the corresponding list contains the index of its parent. The i-th element of the list is an index of the (2^i)-th ancestor of the vertex.
|
-| |
+|
+std::vector< std::vector< int > > | up |
+| | for every vertex stores a list of its ancestors by powers of two For each vertex, the first element of the corresponding list contains the index of its parent. The i-th element of the list is an index of the (2^i)-th ancestor of the vertex.
|
+| |