Skip to content

Data structures, algorithms and useful functions extended for C++ Library

Notifications You must be signed in to change notification settings

peacalm/Cplusplus-Algorithms-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cplusplus-Improvement-Library (CIL)

Data structures, algorithms and useful functions extended for C++ Library

algebra.h

Gaussian elimination

all.h

include all CIL headers.

big_int.h

big integer type, the constant MAX_LEN represents the upper bound of bit_int, it's 10^(4 * MAX_LEN).

binary_index_tree.h

1 dimension and 2 dimension binary index tree. BIT and BIT2 subscript start from 1, while BIT0 and BIT02 start from 0.

bisect.h

bisection algorithm to get max/min value which satisfies a specified unary predicate.

bit_operations.h

bit operations for integer types, like lowbit, setbit, resitebit, cntbit, reversebit. and some combinatorics method in bits, like generate and traverse subsets or combinations.

bit_set.h

familiar with bitset in STL, but the length of this is mutable.

cil_config.h

configure to fit for all platforms and compilers.

cil_def.h

macro definitions and type defines.

combinatorics.h

combinatorics methonds.

debug_kit.h

watch function, output variable name as well as it's value.

functinal_extended.h

plus, subtract and multiply functional class with modulo, maxone, minone etc.

geometry.h

line, point, circle types, Graham scan algorithm, convex hull trick, polygon area calculate etc.

high_precision.h

another big integer type, but implemented with string.

io.h

quick io method, RD, RDB, WR for integers, IN, OUT for all types.

matrix.h

square matrix.

number_theory.h

number theory methods.

output_extended.h

operator << overload for all container types and pair type.

palindromic_tree.h

sorts.h

different sort functions or sort related functions.

sparse_table.h

sparse table to solve range max, min, sum, product or specified function queries.

splay_tree.h

strings_and_sequences.h

string or sequence problems, like edit distance, LIS, LCS etc.

string_extended.h

extended functions for string type, like split, strip etc.

touchable_heap.h

priority_queue like, but elements in it could be changed.

treap_tree.h

triple.h

3 elements quick type.

union_find.h

utility.h

About

Data structures, algorithms and useful functions extended for C++ Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published