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
↓ 136 callers
Method
println
Terminates the current line by printing the line-separator string.
code/algs4/StdOut.java:96
↓ 55 callers
Method
println
Terminates the current line by printing the line-separator string.
code/algs4/Out.java:107
↓ 39 callers
Method
uniform
Returns a random real number uniformly in [0, 1). @return a random real number uniformly in [0, 1)
code/algs4/StdRandom.java:109
↓ 38 callers
Method
print
Flushes standard output.
code/algs4/StdOut.java:186
↓ 29 callers
Method
draw
()
code/algs4/Draw.java:1059
↓ 28 callers
Method
draw
()
code/algs4/StdDraw.java:1580
↓ 26 callers
Method
flush
Flush standard output, padding 0s if number of bits written so far is not a multiple of 8.
code/algs4/BinaryStdOut.java:99
↓ 25 callers
Method
scaleX
(double x)
code/algs4/StdDraw.java:794
↓ 25 callers
Method
scaleY
(double y)
code/algs4/StdDraw.java:795
↓ 24 callers
Method
add
Adds the item to this bag. @param item the item to add to this bag
code/algs4/Bag.java:96
↓ 24 callers
Method
scaleX
(double x)
code/algs4/Draw.java:403
↓ 24 callers
Method
scaleY
(double y)
code/algs4/Draw.java:404
↓ 23 callers
Method
compareTo
(Edge that)
code/chapter4_3_Minimum_Spanning_Tree/Edge.java:36
↓ 22 callers
Method
add
Adds the key to this set (if it is not already present). @param key the key to add @throws IllegalArgumentException if {@code key} is {@code null}
code/algs4/SET.java:78
↓ 22 callers
Method
printf
Prints a formatted string to standard output, using the specified format string and arguments, and then flushes standard output. @param format the <
code/algs4/StdOut.java:288
↓ 17 callers
Method
V
()
code/chapter4_1_Undirected_Graphs/Graph.java:29
↓ 17 callers
Method
length
()
code/chapter6_3_Suffix_Arrays/SuffixArray.java:21
↓ 16 callers
Method
length
Returns the length of this interval. @return the length of this interval (max - min)
code/algs4/Interval1D.java:145
↓ 16 callers
Method
readInt
Reads the next token from this input stream, parses it as a {@code int}, and returns the {@code int}. @return the next {@code int} in this input stre
code/algs4/In.java:328
↓ 16 callers
Method
size
()
code/chapter3_2_Binary_Search_Trees/BST.java:21
↓ 16 callers
Method
writeByte
Write the 8-bit byte to standard output.
code/algs4/BinaryStdOut.java:60
↓ 14 callers
Method
setPenColor
Set the pen color to the default color (black).
code/algs4/StdDraw.java:870
↓ 13 callers
Method
V
()
code/chapter4_2_Directed_Graphs/Digraph.java:33
↓ 13 callers
Method
isEmpty
Returns true if standard input is empty (except possibly for whitespace). Use this method to know whether the next call to {@link #readString()}, {@li
code/algs4/StdIn.java:230
↓ 13 callers
Method
readInt
Reads the next token from standard input, parses it as an integer, and returns the integer. @return the next integer on standard input @throws NoSuch
code/algs4/StdIn.java:330
↓ 12 callers
Method
enqueue
Adds the item to this queue. @param item the item to add
code/algs4/Queue.java:95
↓ 12 callers
Method
pixel
Draws one pixel at (<em>x</em>, <em>y</em>). This method is private because pixels depend on the display. To achieve the same effect, set the pen radi
code/algs4/StdDraw.java:961
↓ 12 callers
Method
pixel
Draws one pixel at (x, y). @param x the x-coordinate of the pixel @param y the y-coordinate of the pixel
code/algs4/Draw.java:574
↓ 11 callers
Method
factorX
(double w)
code/algs4/StdDraw.java:796
↓ 11 callers
Method
factorX
(double w)
code/algs4/Draw.java:405
↓ 11 callers
Method
factorY
(double h)
code/algs4/StdDraw.java:797
↓ 11 callers
Method
factorY
(double h)
code/algs4/Draw.java:406
↓ 10 callers
Method
equals
Compares this set to the specified set. <p> Note that this method declares two empty sets to be equal even if they are parameterized by different gene
code/algs4/SET.java:245
↓ 10 callers
Method
readLine
Reads and returns the next line in this input stream. @return the next line in this input stream; {@code null} if no such line
code/algs4/In.java:271
↓ 9 callers
Method
readString
Reads the next token and returns the {@code String}. @return the next {@code String} @throws NoSuchElementException if standard input is empty
code/algs4/StdIn.java:319
↓ 9 callers
Method
setPenRadius
Sets the pen size to the default size (0.002). The pen is circular, so that lines have rounded ends, and when you set the pen radius and draw a point,
code/algs4/StdDraw.java:836
↓ 9 callers
Method
write
Write the specified bit to standard output. @param x the {@code boolean} to write.
code/algs4/BinaryStdOut.java:128
↓ 8 callers
Method
V
()
code/chapter4_3_Minimum_Spanning_Tree/EdgeWeightedGraph.java:36
↓ 8 callers
Method
delMin
Removes and returns a smallest key on this priority queue. @return a smallest key on this priority queue @throws NoSuchElementException if this prior
code/algs4/MinPQ.java:170
↓ 8 callers
Method
equals
(Object x)
code/chapter1_2_Data_Abstraction/Date.java:25
↓ 8 callers
Method
get
(Key key)
code/chapter3_2_Binary_Search_Trees/BST.java:32
↓ 8 callers
Method
height
Returns the height of the picture. @return the height of the picture (in pixels)
code/algs4/Picture.java:226
↓ 8 callers
Method
increment
Increments the counter by 1.
code/algs4/Counter.java:50
↓ 8 callers
Method
isEmpty
Returns true if standard input is empty. @return true if and only if standard input is empty
code/algs4/BinaryStdIn.java:81
↓ 8 callers
Method
isEmpty
Returns true if input stream is empty (except possibly whitespace). Use this to know whether the next call to {@link #readString()}, {@link #readDoubl
code/algs4/In.java:233
↓ 8 callers
Method
rank
(Key key)
code/chapter3_1_Symbol_Tables/BinarySearchST.java:45
↓ 8 callers
Method
readChar
Reads the next 8 bits from standard input and return as an 8-bit char. Note that {@code char} is a 16-bit type; to read the next 16 bits as a char, us
code/algs4/BinaryStdIn.java:107
↓ 8 callers
Method
width
Returns the width of the picture. @return the width of the picture (in pixels)
code/algs4/Picture.java:235
↓ 7 callers
Method
adj
(int v)
code/chapter4_1_Undirected_Graphs/Graph.java:40
↓ 7 callers
Method
push
Adds the item to this stack. @param item the item to add
code/algs4/Stack.java:90
↓ 6 callers
Method
compareTo
Compares two points by y-coordinate, breaking ties by x-coordinate. Formally, the invoking point (x0, y0) is less than the argument point (x1, y1) if
code/algs4/Point2D.java:172
↓ 6 callers
Method
contains
Is {@code i} an index on this priority queue? @param i an index @return {@code true} if {@code i} is an index on this priority queue; {@code
code/algs4/IndexMinPQ.java:87
↓ 6 callers
Method
hasNextLine
Returns true if this input stream has a next line. Use this method to know whether the next call to {@link #readLine()} will succeed. This method is f
code/algs4/In.java:246
↓ 6 callers
Method
isEmpty
Returns true if this queue is empty. @return {@code true} if this queue is empty; {@code false} otherwise
code/algs4/Queue.java:66
↓ 6 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/MinPQ.java:115
↓ 6 callers
Method
min
()
code/chapter3_2_Binary_Search_Trees/BST.java:70
↓ 6 callers
Method
next
()
code/algs4/Bag.java:125
↓ 6 callers
Method
other
(int vertex)
code/chapter4_3_Minimum_Spanning_Tree/Edge.java:27
↓ 6 callers
Method
put
Inserts the specified key-value pair into the symbol table, overwriting the old value with the new value if the symbol table already contains the spec
code/algs4/ST.java:88
↓ 6 callers
Method
readAllStrings
Reads all remaining tokens from standard input and returns them as an array of strings. @return all remaining tokens on standard input, as an array o
code/algs4/StdIn.java:413
↓ 6 callers
Method
sort
Rearranges the array in ascending order, using the natural order. @param pq the array to be sorted
code/algs4/Heap.java:45
↓ 6 callers
Method
tally
Returns the current value of this counter. @return the current value of this counter
code/algs4/Counter.java:59
↓ 6 callers
Method
userX
(double x)
code/algs4/Draw.java:407
↓ 6 callers
Method
userY
(double y)
code/algs4/Draw.java:408
↓ 5 callers
Method
V
()
code/chapter4_4_Shortest_Paths/EdgeWeightedDigraph.java:33
↓ 5 callers
Method
adj
(int v)
code/chapter4_2_Directed_Graphs/Digraph.java:46
↓ 5 callers
Method
contains
(String key)
code/chapter4_1_Undirected_Graphs/SymbolGraph.java:37
↓ 5 callers
Method
contains
Returns true if this set contains the given key. @param key the key @return {@code true} if this set contains {@code key}; {@code false} oth
code/algs4/SET.java:92
↓ 5 callers
Method
elapsedTime
()
code/chapter1_4_Analysis_of_Algorithms/Stopwatch.java:8
↓ 5 callers
Method
get
Returns the value associated with the given key in this symbol table. @param key the key @return the value associated with the given key if the key
code/algs4/ST.java:73
↓ 5 callers
Method
greater
Helper functions for compares and swaps.
code/algs4/MinPQ.java:206
↓ 5 callers
Method
hasNext
()
code/algs4/Bag.java:122
↓ 5 callers
Method
hasNextLine
Returns true if standard input has a next line. Use this method to know whether the next call to {@link #readLine()} will succeed. This method is func
code/algs4/StdIn.java:243
↓ 5 callers
Method
insert
(Key v)
code/chapter2_4_Priority_Queues/MaxPQ.java:19
↓ 5 callers
Method
isEmpty
Returns true if this symbol table is empty. @return {@code true} if this symbol table is empty and {@code false} otherwise
code/algs4/ST.java:133
↓ 5 callers
Method
line
Draws a line segment between (<em>x</em><sub>0</sub>, <em>y</em><sub>0</sub>) and (<em>x</em><sub>1</sub>, <em>y</em><sub>1</sub>). @param x0 the <e
code/algs4/StdDraw.java:948
↓ 5 callers
Method
readAllStrings
Reads all remaining tokens from this input stream and returns them as an array of strings. @return all remaining tokens in this input stream, as an a
code/algs4/In.java:406
↓ 5 callers
Method
readLine
Reads and returns the next line, excluding the line separator if present. @return the next line, excluding the line separator if present; {@c
code/algs4/StdIn.java:269
↓ 5 callers
Method
remove
()
code/algs4/Bag.java:123
↓ 5 callers
Method
setPenColor
Sets the pen color to the default color (black).
code/algs4/Draw.java:472
↓ 5 callers
Method
setXscale
Sets the <em>x</em>-scale to be the default (between 0.0 and 1.0).
code/algs4/StdDraw.java:723
↓ 5 callers
Method
setYscale
Sets the <em>y</em>-scale to be the default (between 0.0 and 1.0).
code/algs4/StdDraw.java:730
↓ 5 callers
Method
weight
()
code/chapter4_3_Minimum_Spanning_Tree/Edge.java:17
↓ 4 callers
Method
bernoulli
Returns a random boolean from a Bernoulli distribution with success probability <em>p</em>. @param p the probability of returning {@code true} @retu
code/algs4/StdRandom.java:178
↓ 4 callers
Method
count
(int[] a)
code/chapter1_4_Analysis_of_Algorithms/ThreeSum.java:8
↓ 4 callers
Method
draw
Plot this point using standard draw.
code/algs4/Point2D.java:318
↓ 4 callers
Method
exch
(Comparable[] a, int i, int j)
code/chapter2_3_Quicksort/Quick3way.java:60
↓ 4 callers
Method
exch
(int i, int j)
code/algs4/IndexMinPQ.java:264
↓ 4 callers
Method
fillBuffer
()
code/algs4/BinaryStdIn.java:53
↓ 4 callers
Method
find
(int p)
code/chapter1_5_Case_Study_Union_Find/WeightedQuickUnionUF.java:30
↓ 4 callers
Method
find
(int p)
code/chapter1_5_Case_Study_Union_Find/UF.java:48
↓ 4 callers
Method
find
(int p)
code/chapter4_3_Minimum_Spanning_Tree/UF.java:48
↓ 4 callers
Method
getImage
(String filename)
code/algs4/StdDraw.java:1239
↓ 4 callers
Method
getImage
Drawing images.
code/algs4/Draw.java:820
↓ 4 callers
Method
indexOf
Returns the index of the specified key in the specified array. @param a the array of integers, must be sorted in ascending order @param key the sea
code/algs4/BinarySearch.java:56
↓ 4 callers
Method
insert
Adds a new key to this priority queue. @param x the key to add to this priority queue
code/algs4/MinPQ.java:154
↓ 4 callers
Method
isEmpty
()
code/chapter3_1_Symbol_Tables/BinarySearchST.java:41
↓ 4 callers
Method
less
(Comparable v, Comparable w)
code/chapter2_3_Quicksort/Ex25.java:75
↓ 4 callers
Method
point
Draws a point centered at (<em>x</em>, <em>y</em>). The point is a filled circle whose radius is equal to the pen radius. To draw a single-pixel point
code/algs4/StdDraw.java:973
↓ 4 callers
Method
push
(Item item)
code/chapter1_3_Bags_Queues_Stacks/ResizingArrayStack.java:21
next →
1–100 of 794, ranked by callers