Better HN
topnewbestaskshowjobs
Log inSign up

adas0693

26 karma · joined Jan 22, 2020 (6y ago) · 15 submissions

Submissions

comment 2w ago · link · parent

there is a related problem (inspired by an interview questions from ITA software, a part of Google now) that asks to find the smallest positive integer that cannot be expressed using a digit K (in [2,9]) N times in an expression that involves the four basic arithmetic operations and the parentheses: +, -, *, /, (, and ).

to make the problem more interesting, the list of operations can be extended to include exponentiation and concatenation.

for example, using the four basic operations for N=4, and K in [2,9], we get:

7 cannot be computed in 4 2s; 11 cannot be computed in 4 3s; 10 cannot be computed in 4 4s; 8 cannot be computed in 4 5s; 9 cannot be computed in 4 6s; 4 cannot be computed in 4 7s; 5 cannot be computed in 4 8s; 4 cannot be computed in 4 9s;

comment 6mo ago · link · parent

fyi: the paper cited in the wired article is at https://arxiv.org/abs/2603.23843

comment 9mo ago · link · parent

The Claude C Compiler: What It Reveals About the Future of Software

4.

Chris Lattner evaluates the Claude C Compiler(modular.com ↗)

15 points · by adas0693 · 9mo ago · 2 comments

comment 2y ago · link · parent

"We introduce PatternBoost, a flexible method for finding interesting constructions in mathematics. Our algorithm alternates between two phases. In the first ``local'' phase, a classical search algorithm is used to produce many desirable constructions. In the second ``global'' phase, a transformer neural network is trained on the best such constructions. Samples from the trained transformer are then used as seeds for the first phase, and the process is repeated. We give a detailed introduction to this technique, and discuss the results of its application to several problems in extremal combinatorics. The performance of PatternBoost varies across different problems, but there are many situations where its performance is quite impressive. Using our technique, we find the best known solutions to several long-standing problems, including the construction of a counterexample to a conjecture that had remained open for 30 years."

6.

PatternBoost: Constructions in Mathematics with a Little Help from AI(arxiv.org ↗)

1 points · by adas0693 · 2y ago · 2 comments

comment 2y ago · link · parent

Thanks for sharing. Very interesting. Added the formula to my fibonacci number algos collection at https://github.com/alidasdan/fibonacci-number-algorithms . Though simple, the new formula runs much slower than even the linear-time algo.

comment 3y ago · link · parent

There are a couple of well-known algorithms to find the best rational approximation to a given real number. A good and short book is "Diophantine Approximations" by I. Niven. For code, you can also check out this repo of mine: https://github.com/alidasdan/best-rational-approximation .

Note that decimal numbers represented as a floating point numbers on a computer are actually rational numbers due to limited precision. So converting decimal numbers to fractions, both stored on a computer, means converting a fraction with potentially large numerator and/or denominator to a simpler fraction, say, one with a far smaller denonimator.

For example, an approximation to pi is 3.14159265358979323844, which is the same thing as 314159265358979323844/10^20 (trivial approximation). Using these algorithms we can covert this fraction to a simpler fraction under different approximation criteria such as a bound on the approximation error or a bound on the magnitude of the denominator. For this example, we then get various approximations to pi such as 22/7, 355/113, ...

comment 5y ago · link · parent

Binary decision diagrams (BDDs) have been a big deal in electronic design automation (EDA); many of the BDD developments have happened as a result of the applications in EDA.

For a recent and comprehensive coverage, you can check out D. Knuth's fascicle as part of his well-known book. The BDD fascicle and other fascicles are available at http://www.cs.utsa.edu/~wagner/knuth/ .

comment 6y ago · link · parent

Sorry to hear that. Atlassian is hiring. Pls apply. Thank you.

comment 6y ago · link · parent

Thank you for your feedback. I am one of the authors of this paper.

I don't think the paper gives any hints on us dividing universities into classes and comparing. Would love to know how you reached that conclusion.

At the same time, yes, we could have divided universities into different classes: research vs liberal arts, this vs. that state, big vs. small size, etc. These are all trivial groupings but none of these would change the conclusions of this paper. For all practical purposes, we could easily have replaced the university names with labels like U1, U2, ... and still the conclusions would not change. What matters is how a weight-based composite index can be gamed and the paper does show that in multiple ways. Pls review the ILP formulations yourself and run them on the dataset of your choice.

comment 6y ago · link · parent

Thank you for the comment. Pls refer to many references on the Web on the use of Fibonacci sequence as a dynamic programming example or illustration.

comment 6y ago · link · parent

Thank you for the comment. Will check it out.

14.

Show HN: Twelve Simple Algorithms to Compute Fibonacci Numbers(arxiv.org ↗)

13 points · by adas0693 · 6y ago · 4 comments