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
↓ 1 callers
Method
name
(int v)
code/chapter4_2_Directed_Graphs/SymbolDigraph.java:47
↓ 1 callers
Method
next
()
code/chapter1_3_Bags_Queues_Stacks/ResizingArrayStack.java:43
↓ 1 callers
Method
order
()
code/chapter4_2_Directed_Graphs/Topological.java:19
↓ 1 callers
Method
partition
(Comparable[] a, int lo, int hi)
code/chapter2_3_Quicksort/Quick.java:25
↓ 1 callers
Method
partition
(Comparable[] a, int lo, int hi)
code/chapter2_3_Quicksort/Ex25.java:55
↓ 1 callers
Method
pathTo
(int v)
code/chapter4_1_Undirected_Graphs/DepthFirstPaths.java:35
↓ 1 callers
Method
pathTo
(int v)
code/chapter4_1_Undirected_Graphs/BreadthFirstPaths.java:37
↓ 1 callers
Method
pathTo
(int v)
code/chapter4_4_Shortest_Paths/DijkstraSP.java:50
↓ 1 callers
Method
polarOrder
Compares two points by polar angle (between 0 and 2pi) with respect to this point. @return the comparator
code/algs4/Point2D.java:185
↓ 1 callers
Method
pop
Removes and returns the item most recently added to this stack. @return the item most recently added @throws NoSuchElementException if this stack is
code/algs4/Stack.java:104
↓ 1 callers
Method
print
Flushes this output stream.
code/algs4/Out.java:190
↓ 1 callers
Method
printBoolArr
(boolean[][] arr)
code/chapter1_1_Programming_Model/Ex11.java:25
↓ 1 callers
Method
printf
Prints a formatted string to this output stream, using the specified format string and arguments, and then flushes this output stream. @param format
code/algs4/Out.java:281
↓ 1 callers
Method
rank
(String key)
code/chapter6_3_Suffix_Arrays/SuffixArray.java:45
↓ 1 callers
Method
rank
(int key, int[] a)
code/chapter1_1_Programming_Model/BinarySearch.java:12
↓ 1 callers
Method
rank
(int key)
code/chapter1_2_Data_Abstraction/StaticSETofInts.java:17
↓ 1 callers
Method
readAllDoubles
Reads all remaining tokens from standard input, parses them as doubles, and returns them as an array of doubles. @return all remaining doubles on stan
code/algs4/StdIn.java:473
↓ 1 callers
Method
readAllInts
Reads all remaining tokens from standard input, parses them as integers, and returns them as an array of integers. @return all remaining integers on s
code/algs4/StdIn.java:445
↓ 1 callers
Method
readBoolean
Reads the next token from standard input, parses it as a boolean, and returns the boolean. @return the next boolean on standard input @throws NoSuchE
code/algs4/StdIn.java:399
↓ 1 callers
Method
readChar
Reads and returns the next character in this input stream. @return the next character in this input stream
code/algs4/In.java:287
↓ 1 callers
Method
readDouble
Reads the next token from standard input, parses it as a double, and returns the double. @return the next double on standard input @throws NoSuchElem
code/algs4/StdIn.java:341
↓ 1 callers
Method
readInt
Reads the next 32 bits from standard input and return as a 32-bit int. @return the next 32 bits of data from standard input as a {@code int} @throws
code/algs4/BinaryStdIn.java:194
↓ 1 callers
Method
readLong
Reads the next 64 bits from standard input and return as a 64-bit long. @return the next 64 bits of data from standard input as a {@code long} @throw
code/algs4/BinaryStdIn.java:233
↓ 1 callers
Method
rectangle
Draws a rectangle of the specified size, centered at (<em>x</em>, <em>y</em>). @param x the <em>x</em>-coordinate of the center of the rectangle @pa
code/algs4/StdDraw.java:1146
↓ 1 callers
Method
relax
(EdgeWeightedDigraph G, int v)
code/chapter4_4_Shortest_Paths/DijkstraSP.java:28
↓ 1 callers
Method
resync
If StdIn changes, use this to reinitialize the scanner.
code/algs4/StdIn.java:492
↓ 1 callers
Method
reverse
()
code/chapter4_2_Directed_Graphs/Digraph.java:50
↓ 1 callers
Method
save
Saves the drawing to using the specified filename. The supported image formats are JPEG and PNG; the filename suffix must be {@code .jpg} or {@code .p
code/algs4/StdDraw.java:1616
↓ 1 callers
Method
save
Saves this drawing to a file. @param filename the name of the file (with suffix png, jpg, or gif)
code/algs4/Draw.java:1070
↓ 1 callers
Method
save
Saves the picture to a file in a standard image format. The filetype must be .png or .jpg. @param name the name of the file
code/algs4/Picture.java:317
↓ 1 callers
Method
search
(String txt)
code/chapter5_3_Substring_Search/RabinKarp.java:41
↓ 1 callers
Method
search
(String txt)
code/chapter5_3_Substring_Search/BoyerMoore.java:27
↓ 1 callers
Method
search
(String txt)
code/chapter5_3_Substring_Search/KMP.java:28
↓ 1 callers
Method
setArrBoolean
(boolean[][] arr)
code/chapter1_1_Programming_Model/Ex30.java:21
↓ 1 callers
Method
setCanvasSize
Sets the canvas (drawing area) to be 512-by-512 pixels. This also erases the current drawing and resets the coordinate system, pen radius, pen color,
code/algs4/StdDraw.java:636
↓ 1 callers
Method
setCanvasSize
Sets the canvas (drawing area) to be <em>width</em>-by-<em>height</em> pixels. This also erases the current drawing and resets the coordinate system,
code/algs4/Draw.java:336
↓ 1 callers
Method
setScanner
(Scanner scanner)
code/algs4/StdIn.java:496
↓ 1 callers
Method
setSeed
Sets the seed of the pseudorandom number generator. This method enables you to produce the same sequence of "random" number for each execution of the
code/algs4/StdRandom.java:90
↓ 1 callers
Method
setXscale
Sets the x-scale to be the default (between 0.0 and 1.0).
code/algs4/Draw.java:367
↓ 1 callers
Method
setYscale
Sets the y-scale to be the default (between 0.0 and 1.0).
code/algs4/Draw.java:374
↓ 1 callers
Method
show
Displays on screen, pause for {@code t} milliseconds, and turn on <em>animation mode</em>. Subsequent calls to drawing methods such as {@code line()},
code/algs4/Draw.java:1035
↓ 1 callers
Method
show
(Comparable[] a)
code/algs4/Heap.java:100
↓ 1 callers
Method
sink
(int k)
code/chapter2_4_Priority_Queues/MaxPQ.java:60
↓ 1 callers
Method
size
Returns the number of items in this bag. @return the number of items in this bag
code/algs4/Bag.java:87
↓ 1 callers
Method
size
Returns the number of items in this stack. @return the number of items in this stack
code/algs4/Stack.java:81
↓ 1 callers
Method
size
Returns the number of items in this queue. @return the number of items in this queue
code/algs4/Queue.java:75
↓ 1 callers
Method
size
()
code/chapter1_3_Bags_Queues_Stacks/ResizingArrayStack.java:11
↓ 1 callers
Method
sort
(Comparable[] a)
code/chapter2_3_Quicksort/Quick3way.java:12
↓ 1 callers
Method
sort
(Comparable[] a)
code/chapter2_1_Elementary_Sorts/Selection.java:11
↓ 1 callers
Method
sort
(Comparable[] a)
code/chapter2_1_Elementary_Sorts/Insertion.java:11
↓ 1 callers
Method
sort
(Comparable[] a)
code/chapter2_1_Elementary_Sorts/Shell.java:11
↓ 1 callers
Method
square
Draws a 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 center
code/algs4/Draw.java:707
↓ 1 callers
Method
swim
(int k)
code/chapter2_4_Priority_Queues/MaxPQ.java:52
↓ 1 callers
Method
swim
Helper functions to restore the heap invariant.
code/algs4/MinPQ.java:186
↓ 1 callers
Method
time
(String alg, Comparable[] a)
code/chapter2_1_Elementary_Sorts/SortCompare.java:13
↓ 1 callers
Method
timeTrial
(int N)
code/chapter1_4_Analysis_of_Algorithms/DoublingTest.java:8
↓ 1 callers
Method
to
()
code/chapter4_4_Shortest_Paths/DirectedEdge.java:26
↓ 1 callers
Method
toChar
Returns the character corresponding to the argument index. @param index the index @return the character corresponding to the index {@code index} @th
code/algs4/Alphabet.java:216
↓ 1 callers
Method
toIndex
Returns the index corresponding to the argument character. @param c the character @return the index corresponding to the character {@code c} @throws
code/algs4/Alphabet.java:186
↓ 1 callers
Method
union
(int p, int q)
code/chapter1_5_Case_Study_Union_Find/UF.java:55
↓ 1 callers
Method
visit
(EdgeWeightedGraph G, int v)
code/chapter4_3_Minimum_Spanning_Tree/PrimMST.java:28
↓ 1 callers
Method
x
Returns the x-coordinate. @return the x-coordinate
code/algs4/Point2D.java:75
↓ 1 callers
Method
y
Returns the y-coordinate. @return the y-coordinate
code/algs4/Point2D.java:83
↓ 1 callers
Method
year
()
code/chapter1_2_Data_Abstraction/Date.java:19
Method
Alphabet
Initializes a new alphabet from the given set of characters. @param alpha the set of characters
code/algs4/Alphabet.java:90
Method
Bag
Initializes an empty bag.
code/algs4/Bag.java:67
Method
BinarySearch
This class should not be instantiated.
code/algs4/BinarySearch.java:47
Method
BinarySearchST
(int capacity)
code/chapter3_1_Symbol_Tables/BinarySearchST.java:10
Method
BinaryStdIn
()
code/algs4/BinaryStdIn.java:51
Method
BinaryStdOut
()
code/algs4/BinaryStdOut.java:42
Method
BoyerMoore
(String pat)
code/chapter5_3_Substring_Search/BoyerMoore.java:15
Method
BreadthFirstPaths
(Graph G, int s)
code/chapter4_1_Undirected_Graphs/BreadthFirstPaths.java:11
Method
CC
(Graph G)
code/chapter4_1_Undirected_Graphs/CC.java:12
Method
Counter
Initializes a new counter starting at 0, with the given id. @param id the name of the counter
code/algs4/Counter.java:43
Method
Cycle
(Graph G)
code/chapter4_1_Undirected_Graphs/Cycle.java:10
Method
Date
(int m, int d, int y)
code/chapter1_2_Data_Abstraction/Date.java:8
Method
DepthFirstOrder
(Digraph G)
code/chapter4_2_Directed_Graphs/DepthFirstOrder.java:12
Method
DepthFirstPaths
(Graph G, int s)
code/chapter4_1_Undirected_Graphs/DepthFirstPaths.java:15
Method
DepthFirstSearch
(Graph G, int s)
code/chapter4_1_Undirected_Graphs/DepthFirstSearch.java:7
Method
Digraph
(int V)
code/chapter4_2_Directed_Graphs/Digraph.java:12
Method
DijkstraSP
(EdgeWeightedDigraph G, int s)
code/chapter4_4_Shortest_Paths/DijkstraSP.java:15
Method
DirectedCycle
(Digraph G)
code/chapter4_2_Directed_Graphs/DirectedCycle.java:11
Method
DirectedDFS
(Digraph G, int s)
code/chapter4_2_Directed_Graphs/DirectedDFS.java:13
Method
DirectedEdge
(int v, int w, double weight)
code/chapter4_4_Shortest_Paths/DirectedEdge.java:12
Method
Draw
Initializes an empty drawing object with the given name. @param name the title of the drawing window.
code/algs4/Draw.java:247
Method
E
()
code/chapter4_2_Directed_Graphs/Digraph.java:37
Method
E
()
code/chapter4_1_Undirected_Graphs/Graph.java:32
Method
E
()
code/chapter4_3_Minimum_Spanning_Tree/EdgeWeightedGraph.java:40
Method
E
()
code/chapter4_4_Shortest_Paths/EdgeWeightedDigraph.java:37
Method
Edge
(int v, int w, double weight)
code/chapter4_3_Minimum_Spanning_Tree/Edge.java:11
Method
EdgeWeightedDigraph
(int V)
code/chapter4_4_Shortest_Paths/EdgeWeightedDigraph.java:15
Method
EdgeWeightedGraph
(int V)
code/chapter4_3_Minimum_Spanning_Tree/EdgeWeightedGraph.java:14
Method
Graph
(int V)
code/chapter4_1_Undirected_Graphs/Graph.java:11
Method
Heap
()
code/algs4/Heap.java:39
Method
HeapIterator
()
code/algs4/IndexMinPQ.java:313
Method
HeapIterator
()
code/algs4/MinPQ.java:253
Method
HexDump
()
code/algs4/HexDump.java:48
Method
In
Initializes an input stream from standard input.
code/algs4/In.java:87
Method
IndexMinPQ
Initializes an empty indexed priority queue with indices between {@code 0} and {@code maxN - 1}. @param maxN the keys on this priority queue are inde
code/algs4/IndexMinPQ.java:58
Method
Interval1D
Initializes a closed interval [min, max]. @param min the smaller endpoint @param max the larger endpoint @throws IllegalArgumentException if the mi
code/algs4/Interval1D.java:60
← previous
next →
301–400 of 794, ranked by callers