MCPcopy Create free account

hub / github.com/bighuang624/Algorithms-notes / functions

Functions794 in github.com/bighuang624/Algorithms-notes

Methodequals
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
Methodequals
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
Methodequals
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
Methodexch
(Comparable[] a, int i, int j)
code/chapter2_2_Mergesort/MergeBU.java:45
Methodexch
(Comparable[] a, int i, int j)
code/chapter2_2_Mergesort/Merge.java:52
MethodfilledCircle
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
MethodfilledEllipse
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
MethodfilledEllipse
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
MethodfilledRectangle
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
Methodfloor
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
Methodfloor
(Key key)
code/chapter3_2_Binary_Search_Trees/BST.java:90
Methodgeometric
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
Methodget
(Key key)
code/chapter3_4_Hash_Tables/SeparateChainingHashST.java:30
Methodget
(Key key)
code/chapter3_1_Symbol_Tables/BinarySearchST.java:31
Methodget
(Key key)
code/chapter3_1_Symbol_Tables/SequentialSearchST.java:16
MethodgetFont
Returns the current font. @return the current font
code/algs4/StdDraw.java:913
MethodgetFont
Gets the current font. @return the current font
code/algs4/Draw.java:530
MethodgetJLabel
Gets the current {@code JLabel} for use in some other GUI. @return the current {@code JLabel}
code/algs4/Draw.java:521
MethodgetPenColor
Returns the current pen color. @return the current pen color
code/algs4/StdDraw.java:863
MethodgetPenColor
Gets the current pen color. @return the current pen color
code/algs4/Draw.java:465
MethodgetPenRadius
Returns the current pen radius. @return the current value of the pen radius
code/algs4/StdDraw.java:826
MethodgetPenRadius
Gets the current pen radius. @return the current pen radius
code/algs4/Draw.java:435
MethodhasCycle
()
code/chapter4_1_Undirected_Graphs/Cycle.java:27
MethodhasNextChar
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
MethodhasNextChar
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
MethodhasNextKeyTyped
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
MethodhasNextKeyTyped
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
MethodhasPathTo
(int v)
code/chapter4_4_Shortest_Paths/SP.java:11
MethodhashCode
Returns an integer hash code for this interval. @return an integer hash code for this interval
code/algs4/Interval1D.java:178
MethodhashCode
Returns an integer hash code for this point. @return an integer hash code for this point
code/algs4/Point2D.java:308
MethodhashCode
Returns an integer hash code for this interval. @return an integer hash code for this interval
code/algs4/Interval2D.java:99
MethodhashCode
This operation is not supported because pictures are mutable. @return does not return a value @throws UnsupportedOperationException if called
code/algs4/Picture.java:307
Methodid
(int v)
code/chapter4_2_Directed_Graphs/KosarajuSCC.java:34
MethodincreaseKey
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
Methodindex
(String key)
code/chapter4_2_Directed_Graphs/SymbolDigraph.java:42
Methodintersects
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
Methodintersects
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
Methodintersects
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
MethodisBipartite
()
code/chapter4_1_Undirected_Graphs/TwoColor.java:30
MethodisDAG
()
code/chapter4_2_Directed_Graphs/Topological.java:23
MethodisEmpty
()
code/chapter2_4_Priority_Queues/MaxPQ.java:33
MethodisEmpty
Returns true if this bag is empty. @return {@code true} if this bag is empty; {@code false} otherwise
code/algs4/Bag.java:78
MethodisEmpty
()
code/chapter1_3_Bags_Queues_Stacks/ResizingArrayStack.java:8
MethodisKeyPressed
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
MethodisKeyPressed
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
MethodisSorted
(Comparable[] a)
code/chapter2_3_Quicksort/Quick3way.java:74
MethodisSorted
(Comparable[] a)
code/chapter2_3_Quicksort/Quick.java:64
MethodisSorted
(Comparable[] a)
code/chapter2_3_Quicksort/Ex25.java:94
MethodisSorted
(Comparable[] a)
code/chapter2_2_Mergesort/MergeBU.java:59
MethodisSorted
(Comparable[] a)
code/chapter2_2_Mergesort/Merge.java:66
MethodisSorted
(Comparable[] a)
code/chapter2_1_Elementary_Sorts/Selection.java:43
MethodisSorted
(Comparable[] a)
code/chapter2_1_Elementary_Sorts/Insertion.java:41
MethodisSorted
(Comparable[] a)
code/chapter2_1_Elementary_Sorts/Shell.java:47
Methoditerator
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
Methoditerator
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
Methoditerator
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
Methoditerator
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
Methoditerator
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
Methoditerator
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
Methoditerator
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
Methoditerator
()
code/chapter1_3_Bags_Queues_Stacks/ResizingArrayStack.java:34
MethodkeyOf
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
MethodkeyPressed
This method cannot be called directly.
code/algs4/StdDraw.java:1841
MethodkeyPressed
This method cannot be called directly.
code/algs4/Draw.java:1328
MethodkeyReleased
This method cannot be called directly.
code/algs4/StdDraw.java:1851
MethodkeyReleased
This method cannot be called directly.
code/algs4/Draw.java:1342
MethodkeyReleased
Invoked when a key has been released. @param keycode the key combination released
code/algs4/DrawListener.java:56
MethodkeyTyped
This method cannot be called directly.
code/algs4/StdDraw.java:1831
MethodkeyTyped
This method cannot be called directly.
code/algs4/Draw.java:1314
Methodkeys
()
code/chapter3_4_Hash_Tables/SeparateChainingHashST.java:38
Methodkeys
()
code/chapter3_4_Hash_Tables/LinearProbingHashST.java:90
Methodkeys
(Key lo, Key hi)
code/chapter3_1_Symbol_Tables/BinarySearchST.java:116
MethodkineticEnergy
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
Methodleft
Returns the left endpoint of this interval. @return the left endpoint of this interval @deprecated Replaced by {@link #min()}.
code/algs4/Interval1D.java:83
MethodlgR
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
Methodline
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
Methodmain
(String[] args)
code/chapter2_4_Priority_Queues/TopM.java:9
Methodmain
(String[] args)
code/chapter3_5_Searching_Applications/WhiteFilter.java:14
Methodmain
(String[] args)
code/chapter1_4_Analysis_of_Algorithms/DoublingRatio.java:19
Methodmain
(String[] args)
code/chapter1_4_Analysis_of_Algorithms/ThreeSum.java:19
Methodmain
(String[] args)
code/chapter1_4_Analysis_of_Algorithms/StopwatchTest.java:8
Methodmain
(String[] args)
code/chapter1_4_Analysis_of_Algorithms/DoublingTest.java:19
Methodmain
(String[] args)
code/chapter4_2_Directed_Graphs/Topological.java:27
Methodmain
(String[] args)
code/chapter4_2_Directed_Graphs/DirectedDFS.java:36
Methodmain
(String[] args)
code/chapter2_3_Quicksort/Ex25.java:16
Methodmain
(String[] args)
code/chapter4_1_Undirected_Graphs/TestCC.java:12
Methodmain
(String[] args)
code/chapter4_1_Undirected_Graphs/TestSymbolGraph.java:8
Methodmain
(String[] args)
code/chapter4_1_Undirected_Graphs/DegreesOfSeparation.java:12
Methodmain
(String[] args)
code/chapter4_1_Undirected_Graphs/TestSearch.java:8
Methodmain
(String[] args)
code/chapter4_1_Undirected_Graphs/TestPaths.java:12
Methodmain
Unit tests the {@code Bag} data type. @param args the command-line arguments
code/algs4/Bag.java:138
Methodmain
Unit tests the {@code Stack} data type. @param args the command-line arguments
code/algs4/Stack.java:178
Methodmain
A test client. @param args the command-line arguments
code/algs4/Out.java:305
Methodmain
Test client. @param args the command-line arguments
code/algs4/BinaryStdOut.java:274
Methodmain
Unit tests the {@code IndexMinPQ} data type. @param args the command-line arguments
code/algs4/IndexMinPQ.java:334
Methodmain
Unit tests the {@code Interval1D} data type. @param args the command-line arguments
code/algs4/Interval1D.java:225
Methodmain
Unit tests the {@code Alphabet} data type. @param args the command-line arguments
code/algs4/Alphabet.java:243
Methodmain
Unit tests the point data type. @param args the command-line arguments
code/algs4/Point2D.java:336
Methodmain
Test client. @param args the command-line arguments
code/algs4/StdDraw.java:1866
Methodmain
Unit tests the {@code Queue} data type. @param args the command-line arguments
code/algs4/Queue.java:168
← previousnext →501–600 of 794, ranked by callers