Skip to main content

All Questions

Tagged with or
3 votes
2 answers
849 views

Intro In this post, I will present three (3) non-negative integer encoding techniques: Elias gamma coding Elias delta coding Golomb-Rice coding Code ...
coderodde's user avatar
  • 32.3k
5 votes
1 answer
407 views

I have implemented an elementary positive integer class that supports addition, subtraction, and multiplication for an arbitrary number of digits using a singly linked list. ...
Kushagr Jaiswal's user avatar
5 votes
2 answers
849 views

Intro This time, I have attempted to prove the following bruteforce multiplication formula: $$ (a_n \cdots a_0) \cdot (b_m \cdots b_0) = \sum_{i = 0}^n \sum_{j = 0}^m a_i b_j \cdot 10^{i + j}, $$ ...
coderodde's user avatar
  • 32.3k
13 votes
5 answers
3k views

This is my infinite precision integer implemented in C++20. It supports negative numbers. I have implemented addition, subtraction, multiplication and binary integer division, which returns quotient ...
Ξένη Γήινος's user avatar
-4 votes
1 answer
393 views

[edit] Hint: a similar project for C++20 which - as far as I see - also manages bigger than 128-bit integers can be found at: Infinite precision integer in C++20 . [/edit] I got lots of kind hints on ...
user1018684's user avatar
3 votes
3 answers
622 views

I got helpful reviews for first steps in: int128 handling in c-code, gcc / glibc / linux, int128 handling in c-code, gcc / glibc / linux - follow up and int128 handling in c-code, gcc / glibc / linux -...
user1018684's user avatar
3 votes
1 answer
254 views

An update to Int128 That is built on Linux for lack of direct support, based on System.Numerics Nuget package. ...
Short Int's user avatar
  • 762
3 votes
2 answers
914 views

I got very nice reviews for an attempt to produce read and print routines for 128-bit integer datatypes in: int128 handling in c-code, gcc / glibc / linux and: int128 handling in c-code, gcc / glibc / ...
user1018684's user avatar
4 votes
1 answer
249 views

I have created Int128 which is based off of BigInteger with operator overloading to handle larger math requirements. Here is a ...
Short Int's user avatar
  • 762
5 votes
2 answers
415 views

I had a draft for int128 handling reviewed there: int128 handling in c-code, gcc / glibc / linux I changed a lot according to the hints there, while leaving in, e.g., a trailing space on each line, ...
user1018684's user avatar
3 votes
0 answers
130 views

I have this repository. It contains three variations of a simple sorting algorithm for integer keys. The idea is that we keep a balanced BST in which each node holds the integer key and its frequency. ...
coderodde's user avatar
  • 32.3k
2 votes
1 answer
263 views

I used std::multiset to determine how many times that factor appears. I'd like to know if it can be improved; I've focused on the algorithm rather than the code. ...
ozan's user avatar
  • 53
2 votes
1 answer
186 views

As Java programmers, we can always use the BigInteger isProbablePrime() method or store manually all prime numbers in a HashMap. This question is about the most efficient way to figure out if a single ...
user3595831's user avatar
6 votes
2 answers
333 views

I have a very hot segment of code in a large project. I've extracted the relevant segment and a toy example to illustrate it. The project involves an unavoidable combinatorial explosion related to ...
Dave's user avatar
  • 163
3 votes
2 answers
341 views

This is a follow-up question for conv2 Template Function Implementation for Image in C++ and An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++. For performing ...
JimmyHu's user avatar
  • 7,575

15 30 50 per page
1
2 3 4 5
27