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
Method
equals
Compares this point to the specified point. @param other the other point @return {@code true} if this point equals {@code other}; {@code fal
code/algs4/Point2D.java:286
Method
equals
Does this interval equal the other interval? @param other the other interval @return true if this interval equals the other interval; false otherwise
code/algs4/Interval2D.java:86
Method
equals
Returns true if this picture is equal to the argument picture. @param other the other picture @return {@code true} if this picture is the same dimens
code/algs4/Picture.java:288
Method
exch
(Comparable[] a, int i, int j)
code/chapter2_2_Mergesort/MergeBU.java:45
Method
exch
(Comparable[] a, int i, int j)
code/chapter2_2_Mergesort/Merge.java:52
Method
filledCircle
Draws a filled 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 cente
code/algs4/Draw.java:623
Method
filledEllipse
Draws an ellipse with the specified semimajor and semiminor axes, centered at (<em>x</em>, <em>y</em>). @param x the <em>x</em>-coordinate of the ce
code/algs4/StdDraw.java:1061
Method
filledEllipse
Draws an ellipse with given semimajor and semiminor axes, centered on (x, y). @param x the x-coordinate of the center of the ellipse @param y the y-
code/algs4/Draw.java:664
Method
filledRectangle
Draws a filled rectangle of given half width and half height, centered on (x, y). @param x the x-coordinate of the center of the rectangle @param y
code/algs4/Draw.java:768
Method
floor
Returns the largest key in this symbol table less than or equal to {@code key}. @param key the key @return the largest key in this symbol table less
code/algs4/ST.java:210
Method
floor
(Key key)
code/chapter3_2_Binary_Search_Trees/BST.java:90
Method
geometric
Returns a random integer from a geometric distribution with success probability <em>p</em>. @param p the parameter of the geometric distribution @re
code/algs4/StdRandom.java:238
Method
get
(Key key)
code/chapter3_4_Hash_Tables/SeparateChainingHashST.java:30
Method
get
(Key key)
code/chapter3_1_Symbol_Tables/BinarySearchST.java:31
Method
get
(Key key)
code/chapter3_1_Symbol_Tables/SequentialSearchST.java:16
Method
getFont
Returns the current font. @return the current font
code/algs4/StdDraw.java:913
Method
getFont
Gets the current font. @return the current font
code/algs4/Draw.java:530
Method
getJLabel
Gets the current {@code JLabel} for use in some other GUI. @return the current {@code JLabel}
code/algs4/Draw.java:521
Method
getPenColor
Returns the current pen color. @return the current pen color
code/algs4/StdDraw.java:863
Method
getPenColor
Gets the current pen color. @return the current pen color
code/algs4/Draw.java:465
Method
getPenRadius
Returns the current pen radius. @return the current value of the pen radius
code/algs4/StdDraw.java:826
Method
getPenRadius
Gets the current pen radius. @return the current pen radius
code/algs4/Draw.java:435
Method
hasCycle
()
code/chapter4_1_Undirected_Graphs/Cycle.java:27
Method
hasNextChar
Returns true if standard input has more inputy (including whitespace). Use this method to know whether the next call to {@link #readChar()} will succe
code/algs4/StdIn.java:255
Method
hasNextChar
Returns true if this input stream has more inputy (including whitespace). Use this method to know whether the next call to {@link #readChar()} will su
code/algs4/In.java:258
Method
hasNextKeyTyped
Returns true if the user has typed a key (that has not yet been processed). @return {@code true} if the user has typed a key (that has not yet been p
code/algs4/StdDraw.java:1782
Method
hasNextKeyTyped
Returns true if the user has typed a key. @return {@code true} if the user has typed a key; {@code false} otherwise
code/algs4/Draw.java:1276
Method
hasPathTo
(int v)
code/chapter4_4_Shortest_Paths/SP.java:11
Method
hashCode
Returns an integer hash code for this interval. @return an integer hash code for this interval
code/algs4/Interval1D.java:178
Method
hashCode
Returns an integer hash code for this point. @return an integer hash code for this point
code/algs4/Point2D.java:308
Method
hashCode
Returns an integer hash code for this interval. @return an integer hash code for this interval
code/algs4/Interval2D.java:99
Method
hashCode
This operation is not supported because pictures are mutable. @return does not return a value @throws UnsupportedOperationException if called
code/algs4/Picture.java:307
Method
id
(int v)
code/chapter4_2_Directed_Graphs/KosarajuSCC.java:34
Method
increaseKey
Increase the key associated with index {@code i} to the specified value. @param i the index of the key to increase @param key increase the key asso
code/algs4/IndexMinPQ.java:229
Method
index
(String key)
code/chapter4_2_Directed_Graphs/SymbolDigraph.java:42
Method
intersects
Returns true if this interval intersects the specified interval. @param that the other interval @return {@code true} if this interval intersects the
code/algs4/Interval1D.java:123
Method
intersects
Returns the intersection of this set and that set. @param that the other set @return the intersection of this set and that set @throws IllegalArgume
code/algs4/SET.java:217
Method
intersects
Does this two-dimensional interval intersect that two-dimensional interval? @param that the other two-dimensional interval @return true if this two-di
code/algs4/Interval2D.java:49
Method
isBipartite
()
code/chapter4_1_Undirected_Graphs/TwoColor.java:30
Method
isDAG
()
code/chapter4_2_Directed_Graphs/Topological.java:23
Method
isEmpty
()
code/chapter2_4_Priority_Queues/MaxPQ.java:33
Method
isEmpty
Returns true if this bag is empty. @return {@code true} if this bag is empty; {@code false} otherwise
code/algs4/Bag.java:78
Method
isEmpty
()
code/chapter1_3_Bags_Queues_Stacks/ResizingArrayStack.java:8
Method
isKeyPressed
Returns true if the given key is being pressed. <p> This method takes the keycode (corresponding to a physical key) as an argument. It can handle act
code/algs4/StdDraw.java:1821
Method
isKeyPressed
Returns true if the keycode is being pressed. <p> This method takes as an argument the keycode (corresponding to a physical key). It can handle action
code/algs4/Draw.java:1305
Method
isSorted
(Comparable[] a)
code/chapter2_3_Quicksort/Quick3way.java:74
Method
isSorted
(Comparable[] a)
code/chapter2_3_Quicksort/Quick.java:64
Method
isSorted
(Comparable[] a)
code/chapter2_3_Quicksort/Ex25.java:94
Method
isSorted
(Comparable[] a)
code/chapter2_2_Mergesort/MergeBU.java:59
Method
isSorted
(Comparable[] a)
code/chapter2_2_Mergesort/Merge.java:66
Method
isSorted
(Comparable[] a)
code/chapter2_1_Elementary_Sorts/Selection.java:43
Method
isSorted
(Comparable[] a)
code/chapter2_1_Elementary_Sorts/Insertion.java:41
Method
isSorted
(Comparable[] a)
code/chapter2_1_Elementary_Sorts/Shell.java:47
Method
iterator
Returns an iterator that iterates over the items in this bag in arbitrary order. @return an iterator that iterates over the items in this bag in arbi
code/algs4/Bag.java:110
Method
iterator
Returns an iterator to this stack that iterates through the items in LIFO order. @return an iterator to this stack that iterates through the items in
code/algs4/Stack.java:144
Method
iterator
Returns an iterator that iterates over the keys on the priority queue in ascending order. The iterator doesn't implement {@code remove()} since it's o
code/algs4/IndexMinPQ.java:305
Method
iterator
Returns an iterator that iterates over the items in this queue in FIFO order. @return an iterator that iterates over the items in this queue in FIFO
code/algs4/Queue.java:139
Method
iterator
Returns all of the keys in this set, as an iterator. To iterate over all of the keys in a set named {@code set}, use the foreach notation: {@code for
code/algs4/SET.java:134
Method
iterator
Returns all of the keys in this symbol table. To iterate over all of the keys in a symbol table named {@code st}, use the foreach notation: {@code for
code/algs4/ST.java:160
Method
iterator
Returns an iterator that iterates over the keys on this priority queue in ascending order. <p> The iterator doesn't implement {@code remove()} since i
code/algs4/MinPQ.java:245
Method
iterator
()
code/chapter1_3_Bags_Queues_Stacks/ResizingArrayStack.java:34
Method
keyOf
Returns the key associated with index {@code i}. @param i the index of the key to return @return the key associated with index {@code i} @throws Ind
code/algs4/IndexMinPQ.java:167
Method
keyPressed
This method cannot be called directly.
code/algs4/StdDraw.java:1841
Method
keyPressed
This method cannot be called directly.
code/algs4/Draw.java:1328
Method
keyReleased
This method cannot be called directly.
code/algs4/StdDraw.java:1851
Method
keyReleased
This method cannot be called directly.
code/algs4/Draw.java:1342
Method
keyReleased
Invoked when a key has been released. @param keycode the key combination released
code/algs4/DrawListener.java:56
Method
keyTyped
This method cannot be called directly.
code/algs4/StdDraw.java:1831
Method
keyTyped
This method cannot be called directly.
code/algs4/Draw.java:1314
Method
keys
()
code/chapter3_4_Hash_Tables/SeparateChainingHashST.java:38
Method
keys
()
code/chapter3_4_Hash_Tables/LinearProbingHashST.java:90
Method
keys
(Key lo, Key hi)
code/chapter3_1_Symbol_Tables/BinarySearchST.java:116
Method
kineticEnergy
Returns the kinetic energy of this particle. The kinetic energy is given by the formula 1/2 <em>m</em> <em>v</em><sup>2</sup>, where <em>m</em> is the
code/algs4/Particle.java:225
Method
left
Returns the left endpoint of this interval. @return the left endpoint of this interval @deprecated Replaced by {@link #min()}.
code/algs4/Interval1D.java:83
Method
lgR
Returns the binary logarithm of the number of characters in this alphabet. @return the binary logarithm (rounded up) of the number of characters in t
code/algs4/Alphabet.java:172
Method
line
Draws a line from (x0, y0) to (x1, y1). @param x0 the x-coordinate of the starting point @param y0 the y-coordinate of the starting point @param x1 t
code/algs4/Draw.java:563
Method
main
(String[] args)
code/chapter2_4_Priority_Queues/TopM.java:9
Method
main
(String[] args)
code/chapter3_5_Searching_Applications/WhiteFilter.java:14
Method
main
(String[] args)
code/chapter1_4_Analysis_of_Algorithms/DoublingRatio.java:19
Method
main
(String[] args)
code/chapter1_4_Analysis_of_Algorithms/ThreeSum.java:19
Method
main
(String[] args)
code/chapter1_4_Analysis_of_Algorithms/StopwatchTest.java:8
Method
main
(String[] args)
code/chapter1_4_Analysis_of_Algorithms/DoublingTest.java:19
Method
main
(String[] args)
code/chapter4_2_Directed_Graphs/Topological.java:27
Method
main
(String[] args)
code/chapter4_2_Directed_Graphs/DirectedDFS.java:36
Method
main
(String[] args)
code/chapter2_3_Quicksort/Ex25.java:16
Method
main
(String[] args)
code/chapter4_1_Undirected_Graphs/TestCC.java:12
Method
main
(String[] args)
code/chapter4_1_Undirected_Graphs/TestSymbolGraph.java:8
Method
main
(String[] args)
code/chapter4_1_Undirected_Graphs/DegreesOfSeparation.java:12
Method
main
(String[] args)
code/chapter4_1_Undirected_Graphs/TestSearch.java:8
Method
main
(String[] args)
code/chapter4_1_Undirected_Graphs/TestPaths.java:12
Method
main
Unit tests the {@code Bag} data type. @param args the command-line arguments
code/algs4/Bag.java:138
Method
main
Unit tests the {@code Stack} data type. @param args the command-line arguments
code/algs4/Stack.java:178
Method
main
A test client. @param args the command-line arguments
code/algs4/Out.java:305
Method
main
Test client. @param args the command-line arguments
code/algs4/BinaryStdOut.java:274
Method
main
Unit tests the {@code IndexMinPQ} data type. @param args the command-line arguments
code/algs4/IndexMinPQ.java:334
Method
main
Unit tests the {@code Interval1D} data type. @param args the command-line arguments
code/algs4/Interval1D.java:225
Method
main
Unit tests the {@code Alphabet} data type. @param args the command-line arguments
code/algs4/Alphabet.java:243
Method
main
Unit tests the point data type. @param args the command-line arguments
code/algs4/Point2D.java:336
Method
main
Test client. @param args the command-line arguments
code/algs4/StdDraw.java:1866
Method
main
Unit tests the {@code Queue} data type. @param args the command-line arguments
code/algs4/Queue.java:168
← previous
next →
501–600 of 794, ranked by callers