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
↓ 4 callers
Method
readAll
Reads and returns the remainder of this input stream, as a string. @return the remainder of this input stream, as a string
code/algs4/In.java:302
↓ 4 callers
Method
setFont
Sets the font to the default font (sans serif, 16 point).
code/algs4/StdDraw.java:920
↓ 4 callers
Method
shuffle
Rearranges the elements of the specified array in uniformly random order. @param a the array to shuffle @throws NullPointerException if {@code a} is
code/algs4/StdRandom.java:394
↓ 4 callers
Method
sink
(int k)
code/algs4/IndexMinPQ.java:283
↓ 4 callers
Method
size
Returns the number of keys on this priority queue. @return the number of keys on this priority queue
code/algs4/MinPQ.java:124
↓ 4 callers
Method
sort
(Comparable[] a, int M)
code/chapter2_3_Quicksort/Ex25.java:32
↓ 4 callers
Method
swim
Heap helper functions.
code/algs4/IndexMinPQ.java:276
↓ 4 callers
Method
writeBit
Write the specified bit to standard output.
code/algs4/BinaryStdOut.java:47
↓ 3 callers
Method
addEdge
(int v, int w)
code/chapter4_2_Directed_Graphs/Digraph.java:41
↓ 3 callers
Method
ceiling
Returns the smallest key in this set greater than or equal to {@code key}. @param key the key @return the smallest key in this set greater than or e
code/algs4/SET.java:169
↓ 3 callers
Method
circle
Draws a circle of the specified radius, centered at (<em>x</em>, <em>y</em>). @param x the <em>x</em>-coordinate of the center of the circle @param
code/algs4/StdDraw.java:996
↓ 3 callers
Method
close
Closes the output stream.
code/algs4/Out.java:100
↓ 3 callers
Method
contains
Returns true if this symbol table contain the given key. @param key the key @return {@code true} if this symbol table contains {@code key} and
code/algs4/ST.java:114
↓ 3 callers
Method
contains
(Key key)
code/chapter3_1_Symbol_Tables/BinarySearchST.java:125
↓ 3 callers
Method
delMin
Removes a minimum key and returns its associated index. @return an index associated with a minimum key @throws NoSuchElementException if this priority
code/algs4/IndexMinPQ.java:147
↓ 3 callers
Method
either
()
code/chapter4_3_Minimum_Spanning_Tree/Edge.java:22
↓ 3 callers
Method
enableDoubleBuffering
Enable double buffering. All subsequent calls to drawing methods such as {@code line()}, {@code circle()}, and {@code square()} will be deffered until
code/algs4/StdDraw.java:1590
↓ 3 callers
Method
exch
(int i, int j)
code/chapter2_4_Priority_Queues/MaxPQ.java:45
↓ 3 callers
Method
exch
(Comparable[] a, int i, int j)
code/chapter2_3_Quicksort/Ex25.java:80
↓ 3 callers
Method
exch
(int i, int j)
code/algs4/MinPQ.java:215
↓ 3 callers
Method
floor
Returns the largest key in this set less than or equal to {@code key}. @param key the key @return the largest key in this set table less than or equ
code/algs4/SET.java:184
↓ 3 callers
Method
get
Returns the color of pixel ({@code col}, {@code row}). @param col the column index @param row the row index @return the color of pixel ({@code col},
code/algs4/Picture.java:257
↓ 3 callers
Method
greater
General helper functions.
code/algs4/IndexMinPQ.java:260
↓ 3 callers
Method
hash
(Key key)
code/chapter3_4_Hash_Tables/LinearProbingHashST.java:27
↓ 3 callers
Method
index
(String key)
code/chapter4_1_Undirected_Graphs/SymbolGraph.java:42
↓ 3 callers
Method
init
()
code/algs4/Draw.java:259
↓ 3 callers
Method
insert
Associates key with index {@code i}. @param i an index @param key the key to associate with index {@code i} @throws IndexOutOfBoundsException unles
code/algs4/IndexMinPQ.java:110
↓ 3 callers
Method
isEmpty
Returns true if this stack is empty. @return true if this stack is empty; false otherwise
code/algs4/Stack.java:72
↓ 3 callers
Method
isEmpty
Returns true if this priority queue is empty. @return {@code true} if this priority queue is empty; {@code false} otherwise
code/algs4/IndexMinPQ.java:75
↓ 3 callers
Method
isMinHeap
()
code/algs4/MinPQ.java:222
↓ 3 callers
Method
keys
()
code/chapter3_2_Binary_Search_Trees/BST.java:184
↓ 3 callers
Method
less
(int i, int j)
code/chapter2_4_Priority_Queues/MaxPQ.java:41
↓ 3 callers
Method
less
(Comparable v, Comparable w)
code/chapter2_3_Quicksort/Quick3way.java:55
↓ 3 callers
Method
less
(Comparable v, Comparable w)
code/chapter2_3_Quicksort/Quick.java:45
↓ 3 callers
Method
less
(Comparable v, Comparable w)
code/chapter2_2_Mergesort/Merge.java:47
↓ 3 callers
Method
less
Helper functions for comparisons and swaps. Indices are "off-by-one" to support 1-based indexing.
code/algs4/Heap.java:73
↓ 3 callers
Method
random
Returns a random real number uniformly in [0, 1). @return a random real number uniformly in [0, 1) @deprecated Replaced by {@link #uniform()}.
code/algs4/StdRandom.java:136
↓ 3 callers
Method
readAllInts
Reads all remaining tokens from this input stream, parses them as integers, and returns them as an array of integers. @return all remaining lines in
code/algs4/In.java:439
↓ 3 callers
Method
readBoolean
Reads the next bit of data from standard input and return as a boolean. @return the next bit of data from standard input as a {@code boolean} @throws
code/algs4/BinaryStdIn.java:91
↓ 3 callers
Method
readInts
Reads all integers from a file and returns them as an array of integers. @param filename the name of the file @return the integers in the fi
code/algs4/In.java:492
↓ 3 callers
Method
readString
Reads the next token from this input stream and returns it as a {@code String}. @return the next {@code String} in this input stream
code/algs4/In.java:318
↓ 3 callers
Method
set
Sets the color of pixel ({@code col}, {@code row}) to given color. @param col the column index @param row the row index @param color the color @throw
code/algs4/Picture.java:273
↓ 3 callers
Method
setDefaultCloseOperation
Sets the default close operation. @param value the value, typically {@code JFrame.EXIT_ON_CLOSE} (close all windows) or {@code JFrame.DISPOS
code/algs4/Draw.java:320
↓ 3 callers
Method
setFont
Sets the font to the default font (sans serif, 16 point).
code/algs4/Draw.java:537
↓ 3 callers
Method
setPenRadius
Sets the pen size to the default (.002).
code/algs4/Draw.java:442
↓ 3 callers
Method
show
Copies the offscreen buffer to the onscreen buffer, pauses for t milliseconds and enables double buffering. @param t number of milliseconds @deprecate
code/algs4/StdDraw.java:1528
↓ 3 callers
Method
size
Returns the number of keys in this set. @return the number of keys in this set
code/algs4/SET.java:113
↓ 3 callers
Method
toChars
Returns the characters corresponding to the argument indices. @param indices the indices @return the characters corresponding to the indices {@code
code/algs4/Alphabet.java:231
↓ 3 callers
Method
toIndices
Returns the indices corresponding to the argument characters. @param s the characters @return the indices corresponding to the characters {@code s}
code/algs4/Alphabet.java:201
↓ 3 callers
Method
userX
(double x)
code/algs4/StdDraw.java:798
↓ 3 callers
Method
userY
(double y)
code/algs4/StdDraw.java:799
↓ 3 callers
Method
visit
(EdgeWeightedGraph G, int v)
code/chapter4_3_Minimum_Spanning_Tree/LazyPrimMST.java:37
↓ 2 callers
Method
G
()
code/chapter4_1_Undirected_Graphs/SymbolGraph.java:52
↓ 2 callers
Method
addEdge
(int v, int w)
code/chapter4_1_Undirected_Graphs/Graph.java:35
↓ 2 callers
Method
adj
(int v)
code/chapter4_3_Minimum_Spanning_Tree/EdgeWeightedGraph.java:52
↓ 2 callers
Method
angleTo
Returns the angle between this point and that point. @return the angle in radians (between -pi and pi) between this point and that point (0 if equal)
code/algs4/Point2D.java:107
↓ 2 callers
Method
area
Returns the area of this two-dimensional interval. @return the area of this two-dimensional interval
code/algs4/Interval2D.java:68
↓ 2 callers
Method
change
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:197
↓ 2 callers
Method
check
(int i)
code/chapter5_3_Substring_Search/RabinKarp.java:30
↓ 2 callers
Method
clearBuffer
()
code/algs4/BinaryStdOut.java:82
↓ 2 callers
Method
connected
(int p, int q)
code/chapter4_3_Minimum_Spanning_Tree/UF.java:22
↓ 2 callers
Method
contains
Does this two-dimensional interval contain the point p? @param p the two-dimensional point @return true if this two-dimensional interval contains the
code/algs4/Interval2D.java:60
↓ 2 callers
Method
count
()
code/chapter4_1_Undirected_Graphs/CC.java:38
↓ 2 callers
Method
dequeue
Removes and returns the item on this queue that was least recently added. @return the item on this queue that was least recently added @throws NoSuch
code/algs4/Queue.java:111
↓ 2 callers
Method
dfs
(Digraph G, int v)
code/chapter4_2_Directed_Graphs/DirectedDFS.java:25
↓ 2 callers
Method
discrete
Returns a random integer from the specified discrete distribution. @param probabilities the probability of occurrence of each integer @return a rand
code/algs4/StdRandom.java:312
↓ 2 callers
Method
distanceSquaredTo
Returns the square of the Euclidean distance between this point and that point. @param that the other point @return the square of the Euclidean distan
code/algs4/Point2D.java:154
↓ 2 callers
Method
draw
Draws this two-dimensional interval to standard draw.
code/algs4/Interval2D.java:108
↓ 2 callers
Method
exch
(Comparable[] a, int i, int j)
code/chapter2_3_Quicksort/Quick.java:50
↓ 2 callers
Method
exch
(Object[] pq, int i, int j)
code/algs4/Heap.java:77
↓ 2 callers
Method
filledCircle
Draws a filled circle of the specified radius, centered at (<em>x</em>, <em>y</em>). @param x the <em>x</em>-coordinate of the center of the circle
code/algs4/StdDraw.java:1015
↓ 2 callers
Method
filledRectangle
Draws a filled 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 rectan
code/algs4/StdDraw.java:1167
↓ 2 callers
Method
filledSquare
Draws a filled square of the specified size, centered at (<em>x</em>, <em>y</em>). @param x the <em>x</em>-coordinate of the center of the square @p
code/algs4/StdDraw.java:1125
↓ 2 callers
Method
from
()
code/chapter4_4_Shortest_Paths/DirectedEdge.java:22
↓ 2 callers
Method
hasCycle
()
code/chapter4_2_Directed_Graphs/DirectedCycle.java:41
↓ 2 callers
Method
hasPathTo
(int v)
code/chapter4_1_Undirected_Graphs/DepthFirstPaths.java:31
↓ 2 callers
Method
hasPathTo
(int v)
code/chapter4_1_Undirected_Graphs/BreadthFirstPaths.java:33
↓ 2 callers
Method
hasPathTo
(int v)
code/chapter4_4_Shortest_Paths/DijkstraSP.java:46
↓ 2 callers
Method
hash
(Key key)
code/chapter3_4_Hash_Tables/SeparateChainingHashST.java:26
↓ 2 callers
Method
hash
(String key, int M)
code/chapter5_3_Substring_Search/RabinKarp.java:34
↓ 2 callers
Method
hashCode
This operation is not supported because sets are mutable. @return does not return a value @throws UnsupportedOperationException if called
code/algs4/SET.java:260
↓ 2 callers
Method
init
()
code/algs4/StdDraw.java:661
↓ 2 callers
Method
isEmpty
Returns true if this set is empty. @return {@code true} if this set is empty; {@code false} otherwise
code/algs4/SET.java:123
↓ 2 callers
Method
keyPressed
Invoked when a key has been pressed. @param keycode the key combination pressed
code/algs4/DrawListener.java:49
↓ 2 callers
Method
keys
Returns all keys in this symbol table. <p> To iterate over all of the keys in the symbol table named {@code st}, use the foreach notation: {@code for
code/algs4/ST.java:145
↓ 2 callers
Method
less
(Comparable v, Comparable w)
code/chapter2_2_Mergesort/MergeBU.java:40
↓ 2 callers
Method
less
(Comparable v, Comparable w)
code/chapter2_1_Elementary_Sorts/Selection.java:24
↓ 2 callers
Method
less
(Comparable v, Comparable w)
code/chapter2_1_Elementary_Sorts/Insertion.java:22
↓ 2 callers
Method
less
(Comparable v, Comparable w)
code/chapter2_1_Elementary_Sorts/Shell.java:28
↓ 2 callers
Method
marked
(int v)
code/chapter4_2_Directed_Graphs/DirectedDFS.java:32
↓ 2 callers
Method
max
Returns the largest key in this symbol table. @return the largest key in this symbol table @throws NoSuchElementException if this symbol table is emp
code/algs4/ST.java:182
↓ 2 callers
Method
max
()
code/chapter3_2_Binary_Search_Trees/BST.java:80
↓ 2 callers
Method
mean
()
code/chapter1_2_Data_Abstraction/VisualAccumulator.java:23
↓ 2 callers
Method
min
Returns the smallest key in this symbol table. @return the smallest key in this symbol table @throws NoSuchElementException if this symbol table is e
code/algs4/ST.java:171
↓ 2 callers
Method
name
(int v)
code/chapter4_1_Undirected_Graphs/SymbolGraph.java:47
↓ 2 callers
Method
pause
Pause for t milliseconds. This method is intended to support computer animations. @param t number of milliseconds
code/algs4/StdDraw.java:1553
↓ 2 callers
Method
printArr
(int[][] arr)
code/chapter1_1_Programming_Model/Ex13.java:31
↓ 2 callers
Method
put
(Key key, Value val)
code/chapter3_4_Hash_Tables/LinearProbingHashST.java:42
↓ 2 callers
Method
put
(Key key, Value val)
code/chapter3_2_Binary_Search_Trees/BST.java:49
↓ 2 callers
Method
readAll
Reads and returns the remainder of the input, as a string. @return the remainder of the input, as a string @throws NoSuchElementException if standard
code/algs4/StdIn.java:302
← previous
next →
101–200 of 794, ranked by callers