MCPcopy Create free account

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

Functions794 in github.com/bighuang624/Algorithms-notes

↓ 136 callersMethodprintln
Terminates the current line by printing the line-separator string.
code/algs4/StdOut.java:96
↓ 55 callersMethodprintln
Terminates the current line by printing the line-separator string.
code/algs4/Out.java:107
↓ 39 callersMethoduniform
Returns a random real number uniformly in [0, 1). @return a random real number uniformly in [0, 1)
code/algs4/StdRandom.java:109
↓ 38 callersMethodprint
Flushes standard output.
code/algs4/StdOut.java:186
↓ 29 callersMethoddraw
()
code/algs4/Draw.java:1059
↓ 28 callersMethoddraw
()
code/algs4/StdDraw.java:1580
↓ 26 callersMethodflush
Flush standard output, padding 0s if number of bits written so far is not a multiple of 8.
code/algs4/BinaryStdOut.java:99
↓ 25 callersMethodscaleX
(double x)
code/algs4/StdDraw.java:794
↓ 25 callersMethodscaleY
(double y)
code/algs4/StdDraw.java:795
↓ 24 callersMethodadd
Adds the item to this bag. @param item the item to add to this bag
code/algs4/Bag.java:96
↓ 24 callersMethodscaleX
(double x)
code/algs4/Draw.java:403
↓ 24 callersMethodscaleY
(double y)
code/algs4/Draw.java:404
↓ 23 callersMethodcompareTo
(Edge that)
code/chapter4_3_Minimum_Spanning_Tree/Edge.java:36
↓ 22 callersMethodadd
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 callersMethodprintf
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 callersMethodV
()
code/chapter4_1_Undirected_Graphs/Graph.java:29
↓ 17 callersMethodlength
()
code/chapter6_3_Suffix_Arrays/SuffixArray.java:21
↓ 16 callersMethodlength
Returns the length of this interval. @return the length of this interval (max - min)
code/algs4/Interval1D.java:145
↓ 16 callersMethodreadInt
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 callersMethodsize
()
code/chapter3_2_Binary_Search_Trees/BST.java:21
↓ 16 callersMethodwriteByte
Write the 8-bit byte to standard output.
code/algs4/BinaryStdOut.java:60
↓ 14 callersMethodsetPenColor
Set the pen color to the default color (black).
code/algs4/StdDraw.java:870
↓ 13 callersMethodV
()
code/chapter4_2_Directed_Graphs/Digraph.java:33
↓ 13 callersMethodisEmpty
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 callersMethodreadInt
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 callersMethodenqueue
Adds the item to this queue. @param item the item to add
code/algs4/Queue.java:95
↓ 12 callersMethodpixel
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 callersMethodpixel
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 callersMethodfactorX
(double w)
code/algs4/StdDraw.java:796
↓ 11 callersMethodfactorX
(double w)
code/algs4/Draw.java:405
↓ 11 callersMethodfactorY
(double h)
code/algs4/StdDraw.java:797
↓ 11 callersMethodfactorY
(double h)
code/algs4/Draw.java:406
↓ 10 callersMethodequals
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 callersMethodreadLine
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 callersMethodreadString
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 callersMethodsetPenRadius
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 callersMethodwrite
Write the specified bit to standard output. @param x the {@code boolean} to write.
code/algs4/BinaryStdOut.java:128
↓ 8 callersMethodV
()
code/chapter4_3_Minimum_Spanning_Tree/EdgeWeightedGraph.java:36
↓ 8 callersMethoddelMin
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 callersMethodequals
(Object x)
code/chapter1_2_Data_Abstraction/Date.java:25
↓ 8 callersMethodget
(Key key)
code/chapter3_2_Binary_Search_Trees/BST.java:32
↓ 8 callersMethodheight
Returns the height of the picture. @return the height of the picture (in pixels)
code/algs4/Picture.java:226
↓ 8 callersMethodincrement
Increments the counter by 1.
code/algs4/Counter.java:50
↓ 8 callersMethodisEmpty
Returns true if standard input is empty. @return true if and only if standard input is empty
code/algs4/BinaryStdIn.java:81
↓ 8 callersMethodisEmpty
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 callersMethodrank
(Key key)
code/chapter3_1_Symbol_Tables/BinarySearchST.java:45
↓ 8 callersMethodreadChar
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 callersMethodwidth
Returns the width of the picture. @return the width of the picture (in pixels)
code/algs4/Picture.java:235
↓ 7 callersMethodadj
(int v)
code/chapter4_1_Undirected_Graphs/Graph.java:40
↓ 7 callersMethodpush
Adds the item to this stack. @param item the item to add
code/algs4/Stack.java:90
↓ 6 callersMethodcompareTo
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 callersMethodcontains
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 callersMethodhasNextLine
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 callersMethodisEmpty
Returns true if this queue is empty. @return {@code true} if this queue is empty; {@code false} otherwise
code/algs4/Queue.java:66
↓ 6 callersMethodisEmpty
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 callersMethodmin
()
code/chapter3_2_Binary_Search_Trees/BST.java:70
↓ 6 callersMethodnext
()
code/algs4/Bag.java:125
↓ 6 callersMethodother
(int vertex)
code/chapter4_3_Minimum_Spanning_Tree/Edge.java:27
↓ 6 callersMethodput
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 callersMethodreadAllStrings
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 callersMethodsort
Rearranges the array in ascending order, using the natural order. @param pq the array to be sorted
code/algs4/Heap.java:45
↓ 6 callersMethodtally
Returns the current value of this counter. @return the current value of this counter
code/algs4/Counter.java:59
↓ 6 callersMethoduserX
(double x)
code/algs4/Draw.java:407
↓ 6 callersMethoduserY
(double y)
code/algs4/Draw.java:408
↓ 5 callersMethodV
()
code/chapter4_4_Shortest_Paths/EdgeWeightedDigraph.java:33
↓ 5 callersMethodadj
(int v)
code/chapter4_2_Directed_Graphs/Digraph.java:46
↓ 5 callersMethodcontains
(String key)
code/chapter4_1_Undirected_Graphs/SymbolGraph.java:37
↓ 5 callersMethodcontains
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 callersMethodelapsedTime
()
code/chapter1_4_Analysis_of_Algorithms/Stopwatch.java:8
↓ 5 callersMethodget
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 callersMethodgreater
Helper functions for compares and swaps.
code/algs4/MinPQ.java:206
↓ 5 callersMethodhasNext
()
code/algs4/Bag.java:122
↓ 5 callersMethodhasNextLine
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 callersMethodinsert
(Key v)
code/chapter2_4_Priority_Queues/MaxPQ.java:19
↓ 5 callersMethodisEmpty
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 callersMethodline
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 callersMethodreadAllStrings
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 callersMethodreadLine
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 callersMethodremove
()
code/algs4/Bag.java:123
↓ 5 callersMethodsetPenColor
Sets the pen color to the default color (black).
code/algs4/Draw.java:472
↓ 5 callersMethodsetXscale
Sets the <em>x</em>-scale to be the default (between 0.0 and 1.0).
code/algs4/StdDraw.java:723
↓ 5 callersMethodsetYscale
Sets the <em>y</em>-scale to be the default (between 0.0 and 1.0).
code/algs4/StdDraw.java:730
↓ 5 callersMethodweight
()
code/chapter4_3_Minimum_Spanning_Tree/Edge.java:17
↓ 4 callersMethodbernoulli
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 callersMethodcount
(int[] a)
code/chapter1_4_Analysis_of_Algorithms/ThreeSum.java:8
↓ 4 callersMethoddraw
Plot this point using standard draw.
code/algs4/Point2D.java:318
↓ 4 callersMethodexch
(Comparable[] a, int i, int j)
code/chapter2_3_Quicksort/Quick3way.java:60
↓ 4 callersMethodexch
(int i, int j)
code/algs4/IndexMinPQ.java:264
↓ 4 callersMethodfillBuffer
()
code/algs4/BinaryStdIn.java:53
↓ 4 callersMethodfind
(int p)
code/chapter1_5_Case_Study_Union_Find/WeightedQuickUnionUF.java:30
↓ 4 callersMethodfind
(int p)
code/chapter1_5_Case_Study_Union_Find/UF.java:48
↓ 4 callersMethodfind
(int p)
code/chapter4_3_Minimum_Spanning_Tree/UF.java:48
↓ 4 callersMethodgetImage
(String filename)
code/algs4/StdDraw.java:1239
↓ 4 callersMethodgetImage
Drawing images.
code/algs4/Draw.java:820
↓ 4 callersMethodindexOf
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 callersMethodinsert
Adds a new key to this priority queue. @param x the key to add to this priority queue
code/algs4/MinPQ.java:154
↓ 4 callersMethodisEmpty
()
code/chapter3_1_Symbol_Tables/BinarySearchST.java:41
↓ 4 callersMethodless
(Comparable v, Comparable w)
code/chapter2_3_Quicksort/Ex25.java:75
↓ 4 callersMethodpoint
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 callersMethodpush
(Item item)
code/chapter1_3_Bags_Queues_Stacks/ResizingArrayStack.java:21
next →1–100 of 794, ranked by callers