Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bighuang624/Algorithms-notes
/ functions
Functions
794 in github.com/bighuang624/Algorithms-notes
⨍
Functions
794
◇
Types & classes
151
↓ 2 callers
Method
readAllDoubles
Reads all remaining tokens from this input stream, parses them as doubles, and returns them as an array of doubles. @return all remaining lines in th
code/algs4/In.java:467
↓ 2 callers
Method
readDouble
Reads the next token from this input stream, parses it as a {@code double}, and returns the {@code double}. @return the next {@code double} in this i
code/algs4/In.java:338
↓ 2 callers
Method
resize
(int cap)
code/chapter3_4_Hash_Tables/LinearProbingHashST.java:31
↓ 2 callers
Method
resize
(int capacity)
code/algs4/MinPQ.java:140
↓ 2 callers
Method
resize
(int max)
code/chapter3_1_Symbol_Tables/BinarySearchST.java:15
↓ 2 callers
Method
resize
(int max)
code/chapter1_3_Bags_Queues_Stacks/ResizingArrayStack.java:14
↓ 2 callers
Method
reversePost
()
code/chapter4_2_Directed_Graphs/DepthFirstOrder.java:42
↓ 2 callers
Method
select
(int i)
code/chapter6_3_Suffix_Arrays/SuffixArray.java:25
↓ 2 callers
Method
show
Displays the picture in a window on the screen.
code/algs4/Picture.java:190
↓ 2 callers
Method
sink
Helper functions to restore the heap invariant.
code/algs4/Heap.java:59
↓ 2 callers
Method
sink
(int k)
code/algs4/MinPQ.java:193
↓ 2 callers
Method
size
Returns the number of key-value pairs in this symbol table. @return the number of key-value pairs in this symbol table
code/algs4/ST.java:124
↓ 2 callers
Method
square
Draws a square of side length 2r, centered at (<em>x</em>, <em>y</em>). @param x the <em>x</em>-coordinate of the center of the square @param y the
code/algs4/StdDraw.java:1106
↓ 2 callers
Method
text
Write the given text string in the current font, centered at (<em>x</em>, <em>y</em>). @param x the center <em>x</em>-coordinate of the text @param
code/algs4/StdDraw.java:1454
↓ 2 callers
Method
text
Writes the given text string in the current font, centered on (x, y). @param x the center x-coordinate of the text @param y the center y-coordinate o
code/algs4/Draw.java:975
↓ 2 callers
Method
timeRandomInput
(String alg, int N, int T)
code/chapter2_1_Elementary_Sorts/SortCompare.java:30
↓ 2 callers
Method
timeTrial
(int N)
code/chapter1_4_Analysis_of_Algorithms/DoublingRatio.java:8
↓ 2 callers
Method
toString
Returns a string representation of this set. @return a string representation of this set, enclosed in curly braces, with adjacent keys separa
code/algs4/SET.java:271
↓ 2 callers
Method
union
(int p, int q)
code/chapter4_3_Minimum_Spanning_Tree/UF.java:55
↓ 2 callers
Method
validateCol
(int col)
code/algs4/Picture.java:244
↓ 2 callers
Method
validateRow
(int row)
code/algs4/Picture.java:239
↓ 2 callers
Method
weight
()
code/chapter4_3_Minimum_Spanning_Tree/PrimMST.java:51
↓ 2 callers
Method
weight
()
code/chapter4_4_Shortest_Paths/DirectedEdge.java:18
↓ 1 callers
Method
F
(int N)
code/chapter1_1_Programming_Model/Ex19.java:10
↓ 1 callers
Method
G
()
code/chapter4_2_Directed_Graphs/SymbolDigraph.java:52
↓ 1 callers
Method
addDataValue
(double val)
code/chapter1_2_Data_Abstraction/VisualAccumulator.java:15
↓ 1 callers
Method
addDataValue
(double val)
code/chapter1_2_Data_Abstraction/Accumulator.java:6
↓ 1 callers
Method
addEdge
(Edge e)
code/chapter4_3_Minimum_Spanning_Tree/EdgeWeightedGraph.java:44
↓ 1 callers
Method
addEdge
(DirectedEdge e)
code/chapter4_4_Shortest_Paths/EdgeWeightedDigraph.java:41
↓ 1 callers
Method
adj
(int v)
code/chapter4_4_Shortest_Paths/EdgeWeightedDigraph.java:46
↓ 1 callers
Method
arc
Draws a circular arc of the specified radius, centered at (<em>x</em>, <em>y</em>), from angle1 to angle2 (in degrees). @param x the <em>x</em>-coor
code/algs4/StdDraw.java:1086
↓ 1 callers
Method
arc
Draws an arc of radius r, centered on (x, y), from angle1 to angle2 (in degrees). @param x the x-coordinate of the center of the circle @param y th
code/algs4/Draw.java:687
↓ 1 callers
Method
arrReverse
(int[][] arr)
code/chapter1_1_Programming_Model/Ex13.java:22
↓ 1 callers
Method
bfs
(Graph G, int s)
code/chapter4_1_Undirected_Graphs/BreadthFirstPaths.java:18
↓ 1 callers
Method
ccw
Returns true if a→b→c is a counterclockwise turn. @param a first point @param b second point @param c third point @return { -1, 0, +1 } if a→b→c is a
code/algs4/Point2D.java:120
↓ 1 callers
Method
changeKey
Change the key associated with index {@code i} to the specified value. @param i the index of the key to change @param key change the key associated
code/algs4/IndexMinPQ.java:181
↓ 1 callers
Method
circle
Draws a circle of radius r, centered on (x, y). @param x the x-coordinate of the center of the circle @param y the y-coordinate of the center of th
code/algs4/Draw.java:604
↓ 1 callers
Method
clear
Clears the screen to the default color (white).
code/algs4/StdDraw.java:805
↓ 1 callers
Method
clear
Clears the screen to the default color (white).
code/algs4/Draw.java:414
↓ 1 callers
Method
close
Closes this input stream.
code/algs4/In.java:480
↓ 1 callers
Method
compare
(Point2D p, Point2D q)
code/algs4/Point2D.java:209
↓ 1 callers
Method
connected
(int p, int q)
code/chapter1_5_Case_Study_Union_Find/UF.java:22
↓ 1 callers
Method
contains
(Key key)
code/chapter3_4_Hash_Tables/LinearProbingHashST.java:63
↓ 1 callers
Method
contains
(String key)
code/chapter4_2_Directed_Graphs/SymbolDigraph.java:37
↓ 1 callers
Method
contains
(int key)
code/chapter1_2_Data_Abstraction/StaticSETofInts.java:14
↓ 1 callers
Method
createMenuBar
()
code/algs4/StdDraw.java:703
↓ 1 callers
Method
createMenuBar
()
code/algs4/Draw.java:347
↓ 1 callers
Method
cycle
(Object[] a)
code/chapter1_1_Programming_Model/Sattolo.java:10
↓ 1 callers
Method
day
()
code/chapter1_2_Data_Abstraction/Date.java:16
↓ 1 callers
Method
deleteMin
()
code/chapter3_2_Binary_Search_Trees/BST.java:146
↓ 1 callers
Method
dfs
(Digraph G, int v)
code/chapter4_2_Directed_Graphs/DirectedCycle.java:21
↓ 1 callers
Method
dfs
(Digraph G, int v)
code/chapter4_2_Directed_Graphs/KosarajuSCC.java:22
↓ 1 callers
Method
dfs
(Digraph G, int v)
code/chapter4_2_Directed_Graphs/DepthFirstOrder.java:23
↓ 1 callers
Method
dfs
(Graph G, int v)
code/chapter4_1_Undirected_Graphs/TwoColor.java:19
↓ 1 callers
Method
dfs
(Graph G, int v)
code/chapter4_1_Undirected_Graphs/CC.java:22
↓ 1 callers
Method
dfs
(Graph G, int v)
code/chapter4_1_Undirected_Graphs/DepthFirstPaths.java:22
↓ 1 callers
Method
dfs
(Graph G, int v, int u)
code/chapter4_1_Undirected_Graphs/Cycle.java:17
↓ 1 callers
Method
dfs
(Graph G, int v)
code/chapter4_1_Undirected_Graphs/DepthFirstSearch.java:12
↓ 1 callers
Method
distTo
(int v)
code/chapter4_4_Shortest_Paths/DijkstraSP.java:42
↓ 1 callers
Method
drawTo
Plot a line from this point to that point using standard draw. @param that the other point
code/algs4/Point2D.java:326
↓ 1 callers
Method
edges
()
code/chapter4_3_Minimum_Spanning_Tree/KruskalMST.java:26
↓ 1 callers
Method
edges
()
code/chapter4_3_Minimum_Spanning_Tree/PrimMST.java:47
↓ 1 callers
Method
exch
(Comparable[] a, int i, int j)
code/chapter2_1_Elementary_Sorts/Selection.java:29
↓ 1 callers
Method
exch
(Comparable[] a, int i, int j)
code/chapter2_1_Elementary_Sorts/Insertion.java:27
↓ 1 callers
Method
exch
(Comparable[] a, int i, int j)
code/chapter2_1_Elementary_Sorts/Shell.java:33
↓ 1 callers
Method
exists
Returns true if this input stream exists. @return {@code true} if this input stream exists; {@code false} otherwise
code/algs4/In.java:218
↓ 1 callers
Method
exp
Returns a random real number from an exponential distribution with rate λ. @param lambda the rate of the exponential distribution @return a r
code/algs4/StdRandom.java:382
↓ 1 callers
Method
filledPolygon
Draws a polygon with the vertices (<em>x</em><sub>0</sub>, <em>y</em><sub>0</sub>), (<em>x</em><sub>1</sub>, <em>y</em><sub>1</sub>), ..., (<em>x</em>
code/algs4/StdDraw.java:1218
↓ 1 callers
Method
filledPolygon
Draws a filled polygon with the given (x[i], y[i]) coordinates. @param x an array of all the x-coordindates of the polygon @param y an array of all t
code/algs4/Draw.java:803
↓ 1 callers
Method
filledSquare
Draws a filled square of side length 2r, centered on (x, y). @param x the x-coordinate of the center of the square @param y the y-coordinate of the
code/algs4/Draw.java:726
↓ 1 callers
Method
gaussian
Returns a random real number from a standard Gaussian distribution. @return a random real number from a standard Gaussian distribution (mean
code/algs4/StdRandom.java:201
↓ 1 callers
Method
get
(int i)
code/chapter3_5_Searching_Applications/SparseVector.java:20
↓ 1 callers
Method
get
(Key key)
code/chapter3_4_Hash_Tables/LinearProbingHashST.java:56
↓ 1 callers
Method
getJLabel
Returns a JLabel containing this picture, for embedding in a JPanel, JFrame or other GUI widget. @return the {@code JLabel}
code/algs4/Picture.java:167
↓ 1 callers
Method
getSeed
Returns the seed of the pseudorandom number generator. @return the seed
code/algs4/StdRandom.java:100
↓ 1 callers
Method
hasNext
()
code/algs4/Stack.java:156
↓ 1 callers
Method
hasNext
()
code/algs4/IndexMinPQ.java:319
↓ 1 callers
Method
hasNext
()
code/algs4/Queue.java:151
↓ 1 callers
Method
hasNext
()
code/algs4/MinPQ.java:260
↓ 1 callers
Method
hasNext
()
code/chapter1_3_Bags_Queues_Stacks/ResizingArrayStack.java:40
↓ 1 callers
Method
histogram
(int[] a, int M)
code/chapter1_1_Programming_Model/Ex15.java:16
↓ 1 callers
Method
id
(int v)
code/chapter4_1_Undirected_Graphs/CC.java:34
↓ 1 callers
Method
index
(int i)
code/chapter6_3_Suffix_Arrays/SuffixArray.java:29
↓ 1 callers
Method
insertSort
(Comparable[] a, int lo, int hi)
code/chapter2_3_Quicksort/Ex25.java:47
↓ 1 callers
Method
isSorted
Check if array is sorted - useful for debugging.
code/algs4/Heap.java:92
↓ 1 callers
Method
keyTyped
Invoked when a key has been typed. @param c the character typed
code/algs4/DrawListener.java:42
↓ 1 callers
Method
lcp
(String s, String t)
code/chapter6_3_Suffix_Arrays/SuffixArray.java:33
↓ 1 callers
Method
lg
(int N)
code/chapter1_1_Programming_Model/Ex14.java:13
↓ 1 callers
Method
ln10
(int N)
code/chapter1_1_Programming_Model/Ex20.java:13
↓ 1 callers
Method
longRandomPrime
Exercise 5.3.33
code/chapter5_3_Substring_Search/RabinKarp.java:59
↓ 1 callers
Method
marked
(int w)
code/chapter4_1_Undirected_Graphs/DepthFirstSearch.java:20
↓ 1 callers
Method
max
(Counter x, Counter y)
code/chapter1_2_Data_Abstraction/FlipsMax.java:9
↓ 1 callers
Method
mean
()
code/chapter1_2_Data_Abstraction/Accumulator.java:10
↓ 1 callers
Method
merge
(Comparable[] a, int lo, int mid, int hi)
code/chapter2_2_Mergesort/MergeBU.java:22
↓ 1 callers
Method
merge
(Comparable[] a, int lo, int mid, int hi)
code/chapter2_2_Mergesort/Merge.java:29
↓ 1 callers
Method
month
()
code/chapter1_2_Data_Abstraction/Date.java:13
↓ 1 callers
Method
mouseDragged
Invoked when the mouse has been dragged. @param x the x-coordinate of the mouse @param y the y-coordinate of the mouse
code/algs4/DrawListener.java:27
↓ 1 callers
Method
mousePressed
Invoked when the mouse has been pressed. @param x the x-coordinate of the mouse @param y the y-coordinate of the mouse
code/algs4/DrawListener.java:19
↓ 1 callers
Method
mouseReleased
Invoked when the mouse has been released. @param x the x-coordinate of the mouse @param y the y-coordinate of the mouse
code/algs4/DrawListener.java:35
↓ 1 callers
Method
n2
(int n)
code/chapter1_1_Programming_Model/Ex14.java:21
← previous
next →
201–300 of 794, ranked by callers