MCPcopy Create free account

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

Functions794 in github.com/bighuang624/Algorithms-notes

↓ 4 callersMethodreadAll
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 callersMethodsetFont
Sets the font to the default font (sans serif, 16 point).
code/algs4/StdDraw.java:920
↓ 4 callersMethodshuffle
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 callersMethodsink
(int k)
code/algs4/IndexMinPQ.java:283
↓ 4 callersMethodsize
Returns the number of keys on this priority queue. @return the number of keys on this priority queue
code/algs4/MinPQ.java:124
↓ 4 callersMethodsort
(Comparable[] a, int M)
code/chapter2_3_Quicksort/Ex25.java:32
↓ 4 callersMethodswim
Heap helper functions.
code/algs4/IndexMinPQ.java:276
↓ 4 callersMethodwriteBit
Write the specified bit to standard output.
code/algs4/BinaryStdOut.java:47
↓ 3 callersMethodaddEdge
(int v, int w)
code/chapter4_2_Directed_Graphs/Digraph.java:41
↓ 3 callersMethodceiling
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 callersMethodcircle
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 callersMethodclose
Closes the output stream.
code/algs4/Out.java:100
↓ 3 callersMethodcontains
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 callersMethodcontains
(Key key)
code/chapter3_1_Symbol_Tables/BinarySearchST.java:125
↓ 3 callersMethoddelMin
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 callersMethodeither
()
code/chapter4_3_Minimum_Spanning_Tree/Edge.java:22
↓ 3 callersMethodenableDoubleBuffering
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 callersMethodexch
(int i, int j)
code/chapter2_4_Priority_Queues/MaxPQ.java:45
↓ 3 callersMethodexch
(Comparable[] a, int i, int j)
code/chapter2_3_Quicksort/Ex25.java:80
↓ 3 callersMethodexch
(int i, int j)
code/algs4/MinPQ.java:215
↓ 3 callersMethodfloor
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 callersMethodget
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 callersMethodgreater
General helper functions.
code/algs4/IndexMinPQ.java:260
↓ 3 callersMethodhash
(Key key)
code/chapter3_4_Hash_Tables/LinearProbingHashST.java:27
↓ 3 callersMethodindex
(String key)
code/chapter4_1_Undirected_Graphs/SymbolGraph.java:42
↓ 3 callersMethodinit
()
code/algs4/Draw.java:259
↓ 3 callersMethodinsert
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 callersMethodisEmpty
Returns true if this stack is empty. @return true if this stack is empty; false otherwise
code/algs4/Stack.java:72
↓ 3 callersMethodisEmpty
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 callersMethodisMinHeap
()
code/algs4/MinPQ.java:222
↓ 3 callersMethodkeys
()
code/chapter3_2_Binary_Search_Trees/BST.java:184
↓ 3 callersMethodless
(int i, int j)
code/chapter2_4_Priority_Queues/MaxPQ.java:41
↓ 3 callersMethodless
(Comparable v, Comparable w)
code/chapter2_3_Quicksort/Quick3way.java:55
↓ 3 callersMethodless
(Comparable v, Comparable w)
code/chapter2_3_Quicksort/Quick.java:45
↓ 3 callersMethodless
(Comparable v, Comparable w)
code/chapter2_2_Mergesort/Merge.java:47
↓ 3 callersMethodless
Helper functions for comparisons and swaps. Indices are "off-by-one" to support 1-based indexing.
code/algs4/Heap.java:73
↓ 3 callersMethodrandom
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 callersMethodreadAllInts
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 callersMethodreadBoolean
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 callersMethodreadInts
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 callersMethodreadString
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 callersMethodset
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 callersMethodsetDefaultCloseOperation
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 callersMethodsetFont
Sets the font to the default font (sans serif, 16 point).
code/algs4/Draw.java:537
↓ 3 callersMethodsetPenRadius
Sets the pen size to the default (.002).
code/algs4/Draw.java:442
↓ 3 callersMethodshow
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 callersMethodsize
Returns the number of keys in this set. @return the number of keys in this set
code/algs4/SET.java:113
↓ 3 callersMethodtoChars
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 callersMethodtoIndices
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 callersMethoduserX
(double x)
code/algs4/StdDraw.java:798
↓ 3 callersMethoduserY
(double y)
code/algs4/StdDraw.java:799
↓ 3 callersMethodvisit
(EdgeWeightedGraph G, int v)
code/chapter4_3_Minimum_Spanning_Tree/LazyPrimMST.java:37
↓ 2 callersMethodG
()
code/chapter4_1_Undirected_Graphs/SymbolGraph.java:52
↓ 2 callersMethodaddEdge
(int v, int w)
code/chapter4_1_Undirected_Graphs/Graph.java:35
↓ 2 callersMethodadj
(int v)
code/chapter4_3_Minimum_Spanning_Tree/EdgeWeightedGraph.java:52
↓ 2 callersMethodangleTo
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 callersMethodarea
Returns the area of this two-dimensional interval. @return the area of this two-dimensional interval
code/algs4/Interval2D.java:68
↓ 2 callersMethodchange
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 callersMethodcheck
(int i)
code/chapter5_3_Substring_Search/RabinKarp.java:30
↓ 2 callersMethodclearBuffer
()
code/algs4/BinaryStdOut.java:82
↓ 2 callersMethodconnected
(int p, int q)
code/chapter4_3_Minimum_Spanning_Tree/UF.java:22
↓ 2 callersMethodcontains
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 callersMethodcount
()
code/chapter4_1_Undirected_Graphs/CC.java:38
↓ 2 callersMethoddequeue
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 callersMethoddfs
(Digraph G, int v)
code/chapter4_2_Directed_Graphs/DirectedDFS.java:25
↓ 2 callersMethoddiscrete
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 callersMethoddistanceSquaredTo
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 callersMethoddraw
Draws this two-dimensional interval to standard draw.
code/algs4/Interval2D.java:108
↓ 2 callersMethodexch
(Comparable[] a, int i, int j)
code/chapter2_3_Quicksort/Quick.java:50
↓ 2 callersMethodexch
(Object[] pq, int i, int j)
code/algs4/Heap.java:77
↓ 2 callersMethodfilledCircle
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 callersMethodfilledRectangle
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 callersMethodfilledSquare
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 callersMethodfrom
()
code/chapter4_4_Shortest_Paths/DirectedEdge.java:22
↓ 2 callersMethodhasCycle
()
code/chapter4_2_Directed_Graphs/DirectedCycle.java:41
↓ 2 callersMethodhasPathTo
(int v)
code/chapter4_1_Undirected_Graphs/DepthFirstPaths.java:31
↓ 2 callersMethodhasPathTo
(int v)
code/chapter4_1_Undirected_Graphs/BreadthFirstPaths.java:33
↓ 2 callersMethodhasPathTo
(int v)
code/chapter4_4_Shortest_Paths/DijkstraSP.java:46
↓ 2 callersMethodhash
(Key key)
code/chapter3_4_Hash_Tables/SeparateChainingHashST.java:26
↓ 2 callersMethodhash
(String key, int M)
code/chapter5_3_Substring_Search/RabinKarp.java:34
↓ 2 callersMethodhashCode
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 callersMethodinit
()
code/algs4/StdDraw.java:661
↓ 2 callersMethodisEmpty
Returns true if this set is empty. @return {@code true} if this set is empty; {@code false} otherwise
code/algs4/SET.java:123
↓ 2 callersMethodkeyPressed
Invoked when a key has been pressed. @param keycode the key combination pressed
code/algs4/DrawListener.java:49
↓ 2 callersMethodkeys
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 callersMethodless
(Comparable v, Comparable w)
code/chapter2_2_Mergesort/MergeBU.java:40
↓ 2 callersMethodless
(Comparable v, Comparable w)
code/chapter2_1_Elementary_Sorts/Selection.java:24
↓ 2 callersMethodless
(Comparable v, Comparable w)
code/chapter2_1_Elementary_Sorts/Insertion.java:22
↓ 2 callersMethodless
(Comparable v, Comparable w)
code/chapter2_1_Elementary_Sorts/Shell.java:28
↓ 2 callersMethodmarked
(int v)
code/chapter4_2_Directed_Graphs/DirectedDFS.java:32
↓ 2 callersMethodmax
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 callersMethodmax
()
code/chapter3_2_Binary_Search_Trees/BST.java:80
↓ 2 callersMethodmean
()
code/chapter1_2_Data_Abstraction/VisualAccumulator.java:23
↓ 2 callersMethodmin
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 callersMethodname
(int v)
code/chapter4_1_Undirected_Graphs/SymbolGraph.java:47
↓ 2 callersMethodpause
Pause for t milliseconds. This method is intended to support computer animations. @param t number of milliseconds
code/algs4/StdDraw.java:1553
↓ 2 callersMethodprintArr
(int[][] arr)
code/chapter1_1_Programming_Model/Ex13.java:31
↓ 2 callersMethodput
(Key key, Value val)
code/chapter3_4_Hash_Tables/LinearProbingHashST.java:42
↓ 2 callersMethodput
(Key key, Value val)
code/chapter3_2_Binary_Search_Trees/BST.java:49
↓ 2 callersMethodreadAll
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
← previousnext →101–200 of 794, ranked by callers