Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGenus/cosmos
/ functions
Functions
8,543 in github.com/OpenGenus/cosmos
⨍
Functions
8,543
◇
Types & classes
1,606
↓ 3 callers
Method
area
Return the area of the box
code/dynamic_programming/src/box_stacking/box_stacking.cpp:25
↓ 3 callers
Function
binary_search
(arr, l, r, x)
code/search/src/binary_search/binary_search.rb:3
↓ 3 callers
Function
bitwiseRecursiveAddition
(n, m)
code/bit_manipulation/src/addition_using_bits/addition_using_bits.js:1
↓ 3 callers
Function
bnode_ins
* Inserts v in n and keeps the values sorted. * rc is the right child of the value (-1 if it hasn't). */
code/data_structures/src/tree/b_tree/b_tree/b_tree_c/btree.c:38
↓ 3 callers
Function
boardstring
(board, boardsize=boardsize)
code/backtracking/src/knight_tour/knight_tour.py:16
↓ 3 callers
Method
bridge
(self)
code/graph_algorithms/src/bridges_in_graph/Count_bridges.py:56
↓ 3 callers
Function
calculateGCD
(a, b int)
code/mathematical_algorithms/src/gcd_and_lcm/gcd_and_lcm.go:8
↓ 3 callers
Method
calculateHash
()
code/blockchain/Block.java:25
↓ 3 callers
Method
cardinality
test/c++/catch.hpp:5136
↓ 3 callers
Method
changeTemperature
code/design_pattern/src/OOP_patterns/observer_pattern/observer_pattern.cpp:68
↓ 3 callers
Function
checkAABBCollision
(a, b shape)
code/computational_geometry/src/axis_aligned_bounding_box_collision/axis_aligned_bounding_box_collision.go:18
↓ 3 callers
Function
checkAABBCollision
code/computational_geometry/src/axis_aligned_bounding_box_collision/axis_aligned_bounding_box_collision.cpp:16
↓ 3 callers
Function
checkLipogram
code/string_algorithms/src/lipogram_checker/lipogram_checker.js:10
↓ 3 callers
Function
checkPalindrome
Checker */
code/string_algorithms/src/palindrome_checker/palindrome.php:6
↓ 3 callers
Method
check_winner
(self)
code/artificial_intelligence/src/minimax/minimax.py:71
↓ 3 callers
Function
cleanup_tree
code/data_structures/src/tree/binary_tree/binary_tree/make_mirror_tree/make_mirror_tree.c:81
↓ 3 callers
Function
construct_and_insert
code/data_structures/test/tree/multiway_tree/red_black_tree/test_red_black.c:123
↓ 3 callers
Function
contains
test/c++/catch.hpp:8501
↓ 3 callers
Method
convert
Converts infix expression to postfix @param infix infix expression to be converted @return postfix expression
code/data_structures/src/stack/infix_to_postfix/infix_to_postfix.java:39
↓ 3 callers
Function
countDigits
(target int)
code/mathematical_algorithms/src/count_digits/count_digits.go:13
↓ 3 callers
Method
countDigits
(int n)
code/mathematical_algorithms/src/count_digits/count_digits.java:10
↓ 3 callers
Function
countX
(tup, x)
code/languages/python/tuple/example.py:1
↓ 3 callers
Method
createDimension
(int height, int side1, int side2)
code/dynamic_programming/src/box_stacking/box_stacking.java:89
↓ 3 callers
Function
createTree
Create a Tree by initializing its subtree to nil and setting it's value.
code/sorting/src/tree_sort/tree_sort.go:24
↓ 3 callers
Function
create_node
code/data_structures/src/tree/binary_tree/binary_tree/path_sum/sum_left/sum_left.c:11
↓ 3 callers
Function
create_node
code/data_structures/src/tree/binary_tree/binary_tree/minimum_height/minimum_height.c:10
↓ 3 callers
Function
create_node
code/data_structures/src/tree/binary_tree/binary_tree/diameter/diameter.c:18
↓ 3 callers
Function
cube
(n int)
code/mathematical_algorithms/src/armstrong_numbers/armstrong_numbers.go:26
↓ 3 callers
Method
currentHashValue
()
code/blockchain/Block.java:17
↓ 3 callers
Function
decimal_to_base
(N, base)
code/mathematical_algorithms/src/integer_conversion/decimal_to_any_base.js:23
↓ 3 callers
Method
decode
(String word)
code/cryptography/src/baconian_cipher/baconian_cipher.java:46
↓ 3 callers
Function
dequeue
deletion
code/data_structures/src/list/Queue_using_Linked_list/Queue_using_Linked_List.c:42
↓ 3 callers
Function
detach
(block *node)
code/data_structures/src/DoubleLinkedList/lru_cache_with_dll/src_go/main.go:43
↓ 3 callers
Function
dfs
code/graph_algorithms/src/kuhn_maximum_matching/kuhn_maximum_matching.cpp:22
↓ 3 callers
Function
disp_msg
* display a message and wait for escape key to continue *****************************************************************/
code/artificial_intelligence/src/image_processing/houghtransform/main.cpp:53
↓ 3 callers
Function
display
code/cellular_automaton/src/conways_game_of_life/life.cpp:160
↓ 3 callers
Function
display
code/data_structures/src/list/merge_two_sorted_lists/Merging_two_sorted.cpp:38
↓ 3 callers
Method
display
code/data_structures/src/stack/stack/stack.cpp:66
↓ 3 callers
Method
dist
(Point p1, Point p2)
code/computational_geometry/src/graham_scan/graham_scan.java:16
↓ 3 callers
Function
distance_2point
(x1, y1, x2, y2)
code/artificial_intelligence/src/isodata_clustering/isodata.py:5
↓ 3 callers
Method
doingIO
* Returns whether job is performing IO
code/operating_system/src/scheduling/multi_level_feedback_queue_scheduling/mlfq.ts:181
↓ 3 callers
Function
drawline
code/computational_geometry/src/cohen_sutherland_lineclip/cohen_sutherland_lineclip.c:74
↓ 3 callers
Function
eggDrop
* Returns the minimum number of attempts * needed in the worst case for n eggs * and k floors. * Time complexity: O(n*k^2) */
code/dynamic_programming/src/egg_dropping_puzzle/egg_dropping_puzzle.cpp:19
↓ 3 callers
Function
encrypt
(s, e, n)
code/cryptography/src/rsa/rsa.py:19
↓ 3 callers
Method
end
code/data_structures/src/hashs/hash_table/hash_table.cpp:123
↓ 3 callers
Function
enqueue
insertion
code/data_structures/src/list/Queue_using_Linked_list/Queue_using_Linked_List.c:14
↓ 3 callers
Method
enqueue
(self, x)
code/data_structures/src/queue/reverse_queue/reverse_queue.py:10
↓ 3 callers
Function
enqueue_arriving_processes
* Check to see if new arriving processes must be enqueued. */
code/operating_system/src/scheduling/round_robin_scheduling/round_robin_c/round_robin.c:217
↓ 3 callers
Method
erase
code/data_structures/src/tree/binary_tree/aa_tree/aa_tree.cpp:326
↓ 3 callers
Method
eval
(int[] state)
code/cellular_automaton/src/genetic_algorithm/genetic_algorithm.java:131
↓ 3 callers
Function
evalua_poblacion
(poblacion, solucion)
code/cellular_automaton/src/genetic_algorithm/genetic_algorithm2.py:39
↓ 3 callers
Function
evaluate
evaluate p(x) in linear time
code/mathematical_algorithms/src/horner_polynomial_evaluation/horner_polynomial_evaluation.cpp:11
↓ 3 callers
Method
exch
(int i,int j)
code/data_structures/src/tree/heap/max_heap/max_heap.java:77
↓ 3 callers
Method
executeOnetoAll
(T src)
code/graph_algorithms/src/dijkstra_shortest_path/dijkstra_shortest_path.java:126
↓ 3 callers
Method
executeOnetoOne
(T src, T goal)
code/graph_algorithms/src/dijkstra_shortest_path/dijkstra_shortest_path.java:174
↓ 3 callers
Function
exit_monitor
* Ask to leave the monitor. * Note that while leaving a monitor, pending processes on signal take precedence * over processes that asked to enter th
code/operating_system/src/concurrency/monitors/monitors_system_v/monitors.c:125
↓ 3 callers
Function
exponentialSearch
Part of Cosmos by OpenGenus Foundation
code/search/src/exponential_search/exponential_search.go:30
↓ 3 callers
Function
extractMin
code/greedy_algorithms/src/huffman_coding/huffman_coding.c:75
↓ 3 callers
Function
f
code/numerical_analysis/integral/src/integral_trapezoid.c:29
↓ 3 callers
Method
fact
(long n)
code/mathematical_algorithms/src/catalan_number/catalan_number.java:22
↓ 3 callers
Method
factorial
code/mathematical_algorithms/src/factorial/factorial.kt:19
↓ 3 callers
Function
filterTests
test/c++/catch.hpp:8985
↓ 3 callers
Function
find
returns the representative (his input array index) of the set that includes x
code/data_structures/src/tree/multiway_tree/union_find/union_find.c:29
↓ 3 callers
Method
find
@author Kanakalatha Vemuru (https://github.com/KanakalathaVemuru) @param array is a sorted array where the element has to be searched @param key is an
code/search/src/fibonacci_search/fibonacci_search.java:19
↓ 3 callers
Method
find
Returns the first index at which the element is found Returns -1 if not found Takes O(n) time
code/data_structures/src/list/singly_linked_list/operations/find/find.py:53
↓ 3 callers
Function
findAns
code/divide_conquer/src/search_in_a_rotated_array/search_in_a_rotated_array.cpp:32
↓ 3 callers
Function
findBiggestSuffix
(first, second)
code/unclassified/src/biggest_suffix/biggest_suffix.js:25
↓ 3 callers
Function
findMax
Function to query the Segment tree and return the value for a given range
code/dynamic_programming/src/longest_increasing_subsequence/longest_increasing_subsequence_using_segment_tree.cpp:46
↓ 3 callers
Function
findSide
Returns the side of point p with respect to line joining points p1 and p2.
code/computational_geometry/src/quick_hull/quick_hull2.cpp:15
↓ 3 callers
Function
findSide
code/divide_conquer/src/quick_hull/quick_hull.cpp:6
↓ 3 callers
Function
finder
returns the corresponding code for both alphabet and numbers & vice versa
code/string_algorithms/src/morse_code/morsecode.cpp:61
↓ 3 callers
Function
fitness
For each gene in the DNA, this function calculates the difference between it and the character in the same position in the OPTIMAL string. These
code/cellular_automaton/src/genetic_algorithm/genetic_algorithm.py:62
↓ 3 callers
Method
fitness
calculate the current fitness when getting the route as an array of integers, which city to visit first @param route array of integers, current route
code/greedy_algorithms/src/hillclimber/hillclimber.java:36
↓ 3 callers
Method
forward_pass
(self, inputs)
code/artificial_intelligence/src/neural_network/neural_network.py:39
↓ 3 callers
Method
front
code/data_structures/src/queue/queue_using_linked_list/queue_using_linked_list.rb:36
↓ 3 callers
Method
front
(self)
code/data_structures/src/queue/reverse_queue/reverse_queue.py:24
↓ 3 callers
Method
full
(self)
code/data_structures/src/queue/queue/queue.py:12
↓ 3 callers
Function
gNode_ID
code/graph_algorithms/src/adjacency_lists_graph_representation/adjacency_lists_in_c/lgraph_struct.c:13
↓ 3 callers
Method
gcd
code/cryptography/src/affine_cipher/affinekotlin.kt:173
↓ 3 callers
Method
getAllDistances
()
code/graph_algorithms/src/dijkstra_shortest_path/dijkstra_shortest_path.java:148
↓ 3 callers
Function
getBiggerSize
code/divide_conquer/src/karatsuba_multiplication/karatsubamultiply.cpp:35
↓ 3 callers
Method
getCellIndex
(int cell)
code/cellular_automaton/src/elementary_cellular_automata/elementarycellularautomaton.java:58
↓ 3 callers
Method
getData
()
code/data_structures/src/tree/space_partitioning_tree/interval_tree/interval_tree.java:44
↓ 3 callers
Function
getFitness
(target, candidate string)
code/cellular_automaton/src/genetic_algorithm/genetic_algorithm.go:75
↓ 3 callers
Method
getInstance
()
code/design_pattern/src/singleton_pattern/singleton_pattern.js:8
↓ 3 callers
Method
getKeyWord
()
code/algorithm_applications/src/Cichelli's Perfect Hashing Alogorithm/Key.java:34
↓ 3 callers
Function
getMid
A utility function to get the middle index from corner indexes.
code/data_structures/src/tree/segment_tree/segment_tree.c:6
↓ 3 callers
Method
getMid
(int s, int e)
code/data_structures/src/tree/space_partitioning_tree/segment_tree/segment_tree.java:21
↓ 3 callers
Method
getSize
()
code/data_structures/src/queue/queue/queue.java:63
↓ 3 callers
Method
getSize
()
code/divide_conquer/src/merge_sort_using_divide_and_conquer/merge_sort_using_divide_and_conquer.java:24
↓ 3 callers
Method
getTestMacroName
test/c++/catch.hpp:4283
↓ 3 callers
Method
get_data
(self)
code/data_structures/src/list/singly_linked_list/singly_linked_list.py:7
↓ 3 callers
Method
get_key
(&self)
code/data_structures/src/hashs/hash_table/hash_table.rs:104
↓ 3 callers
Function
get_split
(dataset)
code/artificial_intelligence/src/decision_tree/decision_tree.py:102
↓ 3 callers
Method
get_value
(self)
code/data_structures/src/hashs/hash_table/hash_table.py:31
↓ 3 callers
Function
getnode
code/cryptography/src/huffman_encoding/huffman_encoding.c:14
↓ 3 callers
Function
greatestDigit
(num)
code/mathematical_algorithms/src/greatest_digit_in_number/greatest_digit_in_number.js:1
↓ 3 callers
Function
hashCode
code/data_structures/src/hashs/hash_table/hash_table.c:17
↓ 3 callers
Method
hexToBinary
code/compression/src/lossless_compression/huffman/huffman.cpp:531
↓ 3 callers
Method
includeSuccessfulResults
test/c++/catch.hpp:5843
← previous
next →
801–900 of 8,543, ranked by callers