Skip to content

blog 06: new post - #12

Open
kul-sudo wants to merge 1 commit into
nh3dev:masterfrom
kul-sudo:master
Open

blog 06: new post#12
kul-sudo wants to merge 1 commit into
nh3dev:masterfrom
kul-sudo:master

Conversation

@kul-sudo

Copy link
Copy Markdown
Collaborator

No description provided.

@slbsh

slbsh commented Aug 29, 2026

Copy link
Copy Markdown
Member

requested changes marked by line number
20: You should not refer to the TLDR from within your article.
20,21: Wording seems unrefined, try compacting those two sentences.
28: The n in big o notation should be lowercase.
31: Don't start a sentence with "cool".
35: "stuff" is an exceedingly generic word for this description.
52: format your data please.
52,61,83,106,146: As per markdown spec you should use ``` for code blocks. Also format your code with hard tabs please.
57: the algorithm cannot "use c", it may however be "written in c".
58-59: don't make uneducated guesses.
69: "nice little"? seriously?
122,124,125: keep lines in the markdown file under 100 chars please.
141: reformat such that justification doesn't mess with the formatting.

@nick-bors nick-bors left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just reviewed the writing; the typesetting I'm passing to Anthony.

Overall very interesting article and i think it deserves a space and i only really had questions (perhaps for future work) and minor re-wording comments. Good job. :)

Comment thread files/blog/06-lpp.md Outdated
Comment thread files/blog/06-lpp.md Outdated
Comment thread files/blog/06-lpp.md Outdated
Comment thread files/blog/06-lpp.md Outdated
Comment thread files/blog/06-lpp.md
Comment thread files/blog/06-lpp.md Outdated
Comment thread files/blog/06-lpp.md Outdated
Comment thread files/blog/06-lpp.md

> ### TL;DR
> [Longest path problem](https://en.wikipedia.org/wiki/Longest_path_problem) has no known "fast"
> algorithm (unless [P=NP](https://en.wikipedia.org/wiki/P_versus_NP_problem)), but approximations suffice in practice.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link the acyclic one!

Comment thread files/blog/06-lpp.md Outdated
Held-Karp's complexity grows as $$ \mathcal{\text{O}}(2^\text{N} \cdot \text{N}) $$. Which means that at 30
nodes, the program would consume over 100 GB of RAM.
Of course, there are certain low-level optimizations. One example is capping the maximum number of nodes to 64
and storing stuff inside a `uint64_t`. However, all those modifications don't render the program fundamentally faster.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: I mean they would make it faster but it wouldn't change the inherent scaling characteristics. Its like a constant term in the big O. Also, as much as we drop constants in the big O notation, they really matter i mean what if this algorithm is best (if you're willing to sacrifice some ram) for smaller graphs? if at any point it would beat out brute force or the NN thats something that would be quite interesting

Comment thread files/blog/06-lpp.md Outdated
@nick-bors
nick-bors requested a review from slbsh August 29, 2026 07:21
@kul-sudo
kul-sudo force-pushed the master branch 6 times, most recently from c0532d3 to 9ef42c2 Compare August 30, 2026 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants