|
Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
|
for IO operations More...
Functions | |
| uint64_t | next_higher_number (uint64_t x) |
| The main function implements checking the next number. | |
| bool | isPowerOfTwo (std ::int64_t n) |
| The main function implements check for power of 2. | |
for IO operations
Bit manipulation algorithms.
for io operations
Program to generate n-bit Gray code
storing the numbers
for assert
Bit manipulation algorithms
for assert for IO operations
Bit manipulation algorithms
Gray code is a binary numeral system where consecutive values differ in exactly 1 bit. The following code offers one of many possible Gray codes given some pre-determined number of bits. for gray code representation for assert for IO operations for vector data structure
Bit manipulation algorithms
for assert
Bit Manipulation algorithms
for std::min for assert for IO operations for limits of integral types for std::vector
| bool bit_manipulation::isPowerOfTwo | ( | std ::int64_t | n | ) |
The main function implements check for power of 2.
| n | is the number who will be checked |
| uint64_t bit_manipulation::next_higher_number | ( | uint64_t | x | ) |
The main function implements checking the next number.
| x | the number that will be calculated |