mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.8K
active users

#BinaryTree

0 posts0 participants0 posts today

#OEIS

Оказывается, внутри
#Collatz conjecture, прямо после десятки (10 -> 3 или 3 -> 10 как угодно) живёт https://oeis.org/A007283

Кто бы мог подумать...

Это бесконечная линия, которая никогда не ветвится:
1, 2, 4, 8, 16, 5, 10,
3, 6, 12, 24, 48, ...

Я думал, что получится чутка приплюснутое
#BinaryTree
Но я не ожидал бесконечных стрел как у Леголаса.

oeis.orgA007283 - OEIS

так как сегодня день числа π aka #PiDay я стал на #JavaScript рисовать дерево из #Collatz conjecture

начать решил с небольших объёмов -- перебрать только лишь до 20_000

и в этом
#BinaryTree вдруг заметил длиннющую линию, которая совсем не ветвится. Оказалось, это Collatz 16551:

16551, 49654, 24827, 74482, 37241, 111724, 55862, 27931, 83794, 41897, 125692, 62846, 31423, 94270, 47135, 141406, 70703, 212110, 106055, 318166, 159083, 477250, 238625, 715876, 357938, 178969, 536908, 268454, 134227, 402682, 201341, 604024, 302012, 151006, 75503, 226510, 113255, 339766, 169883, 509650, 254825, 764476, 382238, 191119, 573358, 286679, 860038, 430019, 1290058, 645029, 1935088, 967544, 483772, 241886, 120943, 362830, 181415, 544246, 272123, 816370, 408185, 1224556, 612278, 306139, 918418, 459209, 1377628, 688814, 344407, 1033222, 516611, 1549834, 774917, 2324752, 1162376, 581188, 290594, 145297, 435892, 217946, 108973, 326920, 163460, 81730, 40865, 122596, 61298, 30649, 91948, 45974, 22987, 68962, 34481, 103444, 51722, 25861, 77584, 38792,
19396, 9698, 4849, 14548, 7274, 3637, 10912, 5456, 2728, 1364, 682, 341, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1

Конечно, если бы я взял больше данных, она начала ветвится бы до/после 19396.

Inverting a binary tree is a classic problem that teaches valuable lessons about tree traversal and recursion. This blog post explores different approaches, including recursive and iterative methods, and compares their strengths and weaknesses. Whether you're preparing for technical interviews or enhancing your algorithmic skills, understanding this problem is crucial. Dive in to strengthen your tree manipulation skills! 🌳🔄 Read more: fanyangmeng.blog/invert-binary #BinaryTree #Algorithms

Fanyang Meng's Blog · 226. Invert Binary TreeMaster inverting a binary tree (LeetCode 226) with Python! Discover recursive & iterative methods (BFS/DFS), pre/post-order traversal strategies, and node-swapping logic. Perfect for coding interviews and algorithm mastery. Step-by-step solutions explained.

☑️ Day 26/100: #Leetcode daily question

🟨 Question: 951. Flip Equivalent Binary Trees

Good binary tree question and I did see the approach but got good understanding of tree questions

🐈‍⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions

🔗 My Leetcode Github: github.com/akshatsingh1718

🔗 Solution Link: github.com/akshatsingh1718/lee

GitHubakshatsingh1718 - Overview👨‍💻 SWE @ HCL Tech | 💡 Machine Learning & Generative AI Enthusiast | 🌐 Full Stack Developer | ✍️ Blogger & Content Creator - akshatsingh1718

☑️ Day 25/100: #Leetcode daily question

🟨 Question: 2641. Cousins in Binary Tree II

Easy binary tree question but I saw the solution, could be done without seeing it.

🐈‍⬛ Check out my #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions

🔗 Solution Link: github.com/akshatsingh1718/lee

🔗 My Leetcode Github: github.com/akshatsingh1718/lee

GitHubleetcode/cousinsinBinaryTreeII at main · akshatsingh1718/leetcodeContribute to akshatsingh1718/leetcode development by creating an account on GitHub.

This year, 2022 marks the 60th anniversary of that fateful day in 1962 when a 24-year-old Donald Knuth started writing “The Art of Computer Programming.” Now approaching his 85th birthday, Knuth has become almost a legend in the world of computer programming — and he’s still writing additional volumes for his massive analysis of algorithms.

But every year, right around Christmas time, there’s another tradition. Knuth gives a special lecture “pitched at non-specialists” for a small audience at Stanford University (where Knuth is a professor emeritus) and a larger audience online.

Donald Knuth’s 2022 ‘Christmas Tree’ Lecture Is about Trees
thenewstack.io/donald-knuths-2

The New StackDonald Knuth's 2022 'Christmas Tree' Lecture Is about TreesThis year, 2022 marks the 60th anniversary of that fateful day in 1962 when a 24-year-old Donald Knuth started writing
Continued thread

A radial

Tweeted 4 year ago with this comment: “One thing that came out of this question is...a radial . I think that @inversed_ru did something similar a while back in a different context. I may map this onto a cone, put it in a 3d modling program, intertwine branches...or...or...something ”. Note that the user name corresponds to Twitter, not Mastodon.