- Home
- Premium Memberships
- Lottery Results
- Forums
- Predictions
- Lottery Post Videos
- News
- Search Drawings
- Search Lottery Post
- Lottery Systems
- Lottery Charts
- Lottery Wheels
- Worldwide Jackpots
- Quick Picks
- On This Day in History
- Blogs
- Online Games
- Premium Features
- Contact Us
- Whitelist Lottery Post
- Rules
- Lottery Book Store
- Lottery Post Gift Shop
The time is now 8:45 am
You last visited
June 3, 2026, 5:36 pm
All times shown are
Eastern Time (GMT-5:00)
Quick win on a rosalind.info tree challenge
Published:
Updated:
Crazy how the strange tree theorems I learned in college have an actual applied use outside of homework...
So the problem sets up this long winded explanation of unrooted tree theories and wants you to determine the total number of "internal leaves" on the tree... for an unrooted tree, this is returned as n-2... that's it! So basically I downloaded their challenge number, subtracted 2 then resubmitted... this was one of those moments where the CS degree came in handy. I could not imagine having to come at this from the other side, Bio to CS... I am picking up the biology on an as needed basis.
I also learned that the python pow() function accepts a modulo as a third argument... sometimes these biological problems would quickly flood your RAM if you are not thinking of efficiency from the start. Many of the combinatoric solutions want you to use modulo 1,000,000 to keep from freezing your cpu.

Comments
This Blog entry currently has no comments.
Post a Comment
Please Log In
To use this feature you must be logged into your Lottery Post account.
Not a member yet?
If you don't yet have a Lottery Post account, it's simple and free to create one! Just tap the Register button and after a quick process you'll be part of our lottery community.
Register