Package com.jackmeng.core.util
Class use_Algos
java.lang.Object
com.jackmeng.core.util.use_Algos
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> void
$dfs_traverse0_1
(T node, Map<T, List<T>> adjList, Set<T> visited, List<T> res) private static <T extends Comparable<T>>
T$floyd_rivest_select0_1
(List<T> list, int k) private static void
$huffman_table0_1
(use_Algos.$freq_node_00 node, String prefix, Map<Character, String> table) private static <T extends Comparable<T>>
T$quick_select0_1
(T[] array, int left, int right, int k) private static <T extends Comparable<T>>
int$quick_select0_2
(T[] array, int left, int right, int pivot) static <T extends Comparable<T>>
intbinary_search
(T[] toSearch, T target, const_Bias bias) static <T> T
boyer_moore_vote
(T[] array) static <T> List<T>
dfs_traverse
(T root, Map<T, List<T>> adjList) static <T extends Comparable<T>>
Tfloyd_rivest_select
(T[] array, int k) huffman_table
(String text) static <T> List<T>
optimal_eviction_policy
(List<T> accesses, int cache_sz) static <T extends Comparable<T>>
Tquick_select
(T[] array, int k) static <T> void
swap
(T[] array, int i, int j)
-
Field Details
-
RNG0_1
-
-
Constructor Details
-
use_Algos
private use_Algos()
-
-
Method Details
-
binary_search
-
huffman_table
-
boyer_moore_vote
public static <T> T boyer_moore_vote(T[] array) -
optimal_eviction_policy
-
dfs_traverse
-
swap
public static <T> void swap(T[] array, int i, int j) -
quick_select
-
floyd_rivest_select
-
$huffman_table0_1
private static void $huffman_table0_1(use_Algos.$freq_node_00 node, String prefix, Map<Character, String> table) -
$quick_select0_1
-
$floyd_rivest_select0_1
-
$quick_select0_2
private static <T extends Comparable<T>> int $quick_select0_2(T[] array, int left, int right, int pivot) -
$dfs_traverse0_1
-