phodo
Original: "After AI cost him his job, this North Texas engineer built a map for cheap local restaurants"
“Do not remove a fence until you know why it was put up in the first place.”
Well, Sega gamers for one: https://www.youtube.com/watch?v=c744iD0_fWU
Answer: Here’s an ASCII Christmas tree that is also a Merkle tree (Each parent node is the hash of its two children; leaves are the “data blocks”.)
MERKLE TREE
H(ROOT)
/ \
H(0-1) H(2-3)
/ \ / \
H(0) H(1) H(2) H(3)
/ \ / \ / \ / \
D0 D0 D1 D1 D2 D2 D3 D3
But that's a little too tidy to be a proper Christmas tree — so here’s a more “tree-like” version with ornaments, while still preserving the Merkle structure: H(ROOT)
/ \
H(0-1) H(2-3)
/ \ / \
H(0) H(1) H(2) H(3)
/ \ / \ / \ / \
D0 D0 D1 D1 D2 D2 D3 D3
(leaf)(leaf)(leaf) (leaf)(leaf)(leaf)
Notes (so it’s actually Merkle-y)D0–D3 = data blocks (your “presents” )
H(0) = hash(D0 || D0) (duplicated leaf for balance, common in Merkle trees)
H(0-1) = hash(H(0) || H(1))
H(ROOT) = hash(H(0-1) || H(2-3))
If you want, I can:
generate a bigger tree (8, 16, 32 leaves),
make the hashes look like real hash strings,
or format it like a perfect triangular Christmas tree silhouette while keeping the Merkle parent/child layout.
-- Prompt: format it like a perfect triangular Christmas tree silhouette while keeping the Merkle parent/child layout.
Answer: You got it — here’s a perfect triangular Christmas tree silhouette that still preserves the Merkle parent/child layout (parents directly above their two children, leaves at the base).
H(ROOT)
/ \
┌────────H(0-3)────────┐
/ \
┌────H(0-1)────┐ ┌────H(2-3)────┐
/ \ / \
┌─H(0)─┐ ┌─H(1)─┐ ┌─H(2)─┐ ┌─H(3)─┐
/ \ / \ / \ / \
D0 D1 D2 D3 D4 D5 D6 D7
If you want it even more like a Christmas tree (full silhouette + ornaments)Here’s a slightly more “filled” version while keeping the structure valid:
H(ROOT)
/ \
──────H(0-3)──────
/ \
─────H(0-1)───── ─────H(2-3)─────
/ \ / \
───H(0)─── ───H(1)─── ───H(2)─── ───H(3)───
/ \ / \ / \ / \
D0 D1 D2 D3 D4 D5 D6 D7
Edit: Note the emoji ornaments did not come through.John Carmack Reveals AGI Future: Robots, Videogames, and AI Agents
Ask HN: Futuristic and Sci-Fi Solutions to Fire Safety
Imagine you are tasked with a step function (10x, 100x, 1000x) improvements in fire safety, containment on a large scale basis. What would you dream up? Cost is not a factor in this case. Imagine fire becomes the existential threat. Imagine that climate change continues to be getting worse, and root causes for addressing climate change are being handled in another project.Yes, there are...
Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
As the title says, I have many PDFs - mostly scans via Scansnap - but also non-scans. These are sensitive in nature, e.g. bills, documents, etc. I would like a local-first AI solution that allows me to say things like: "show me all tax documents for August 2023" or "show my home title". Ideally it is Mac software that can access iCloud too, since that where I store it all. I would prefer to not...