Unanswered Questions
493 questions with no upvoted or accepted answers
23votes
0answers
761views
Multiplying big numbers using Karatsuba's method
The Karatsuba algorithm, first published in 1962, aims to speed up the multiplication of big numbers by reducing the number of 'single-digit-multiplications' involved.Because of its complexity (...
9votes
1answer
418views
Metropolis Monte Carlo Sampler in Rust
the following is an implementation of the standard Metropolis Hastings Monte Carlo sampler. You can read more about it here.At the end I am going to give you a link to the Rust playground, so you ...
CommunityBot
- 1
8votes
0answers
366views
STTCL FSM framework based on the GoF State Pattern, Part I: The basic interfaces
PrefaceI have decided to let my pet project created some years ago to undergo a code review here. The review will be broken into parts according to meta question Multiple reviews or one big review?...
CommunityBot
- 1
8votes
0answers
201views
Implementing Simple Diff in Rebol
I've taken a crack at implementing Simple Diff in Rebol (versions 2 and 3). Simple Diff works by finding the longest common sequence in two series, then recursively applies itself either side of this ...
7votes
0answers
293views
Selection sort with reduced comparison count: Python iteration 2
Follow up to Selection sort with reduced comparison count - semi-final Iteration?My goal (and excuse not to tag reinventing…) is to have presentable code to argue the viability of reducing the number ...
7votes
0answers
564views
A* Algorithm in F#
Inspired by this post I looked up A* on wikipedia and went on with my own implementation as seen below where I try to mimic the pseudocode on Wikipedia but in a recursive manner. I would like any ...
CommunityBot
- 1
6votes
0answers
185views
Efficiently generate distinct subsets which sum to a particular value
Related: Find all distinct subsets that sum to a given numberThis code is supposed to efficiently generate all subsets of a list such that the subset's values sum to a particular target value. For ...
6votes
0answers
147views
K nearest neighbours algorithm
Here is a project that I worked on for a few days in June 2020. Since the algorithm is extremely slow, I looked into methods in order to parallelize operations but did not obtain any satisfactory ...
6votes
0answers
293views
ATB strategy MVC architecture refactoring
NOTE: this question isn't as long as it appears to be. I added the comments to the code only to answer some possible questions that may appear.I'm making an active time battle strategy. Its mechanics ...
6votes
0answers
134views
Showing a Wikipedia article's changes as Git commits
I created a small-ish NodeJS script which takes as argument the name of a Wikipedia article (and optionally a Wikipedia edition, "en" is default) and creates a Git repository with each ...
6votes
0answers
2kviews
Generic sliding window
The code implements fully generic sliding window with linear complexity. It should usually be paired with transforming iterator to reach full potential.Sliding window is a grouping of elements by ...
CommunityBot
- 1
6votes
0answers
659views
Fowler–Noll–Vo hash function in Lua
I recently coded this FNV-1a hash function in Lua. Are there any apparent performance improvements that could be implemented?...
CommunityBot
- 1
6votes
0answers
434views
Translating CFRM algorithm from Java to Clojure and improving performance
Counterfactual Regret Minimization is an algorithm that can be used to find the Nash Equilibrium for games of incomplete information. I have tried to adapt the exercise from here to Clojure. You can ...
5votes
0answers
104views
Correct abstractions/organisation of a NodeJS GraphQL API
I recently did a quick take-home test for a potential job opportunity. It included building a GraphQL API with nodeJS. I am not an expert in node (mostly use Python at work) but I have used it for ...
5votes
0answers
194views
Replacing tags in email
I have multiple tables and multiple email templates which will need tags replacing. The data for the tags depends on the recipient id as the data will need to be fetched from different tables.I have ...




