HN user

htiek

800 karma
Posts23
Comments4
View on HN
www.dhs.gov 6d ago

New DHS rules limit foreign student visas to 4 years plus extensions

htiek
3pts0
www.reuters.com 3y ago

Chegg Integrates ChatGPT4

htiek
1pts0
www.reuters.com 3y ago

Parts of Twitter source leaked online

htiek
40pts8
web.stanford.edu 5y ago

A Mathematical Foundation for Foundation Paper Pieceable Quilts

htiek
2pts0
www.reuters.com 5y ago

Mining Magnets: Arctic island finds green power can be a curse

htiek
2pts0
www.reuters.com 6y ago

Levandowski agrees to plea deal over Google secrets

htiek
139pts86
welcometotheoryland.wordpress.com 7y ago

Sometimes, data are avocados. Sometimes, data is wine

htiek
2pts0
web.stanford.edu 7y ago

Topics in Advanced Data Structures [pdf]

htiek
931pts83
www.usatoday.com 7y ago

Female, Minority Students Took AP Computer Science Exam in Record Numbers

htiek
1pts0
medium.com 7y ago

It’s Triangles All the Way Down: BSTs and Polygon Triangulations

htiek
2pts0
www.washingtonpost.com 8y ago

Federal judge rules that Trump cannot block people on Twitter

htiek
2pts0
pdfs.semanticscholar.org 8y ago

Speeding Up Binary Search Trees with Crazy Good Chocolate Pop Tarts (2012) [pdf]

htiek
4pts1
keithschwarz.com 8y ago

Finding the most-significant bit in constant time, independent of word size

htiek
2pts0
www.cc.gatech.edu 8y ago

Do Artifacts Have Politics? (1980) [pdf]

htiek
1pts0
edsource.org 8y ago

Jerry Brown appoints 15 to new K-12 CS Panel

htiek
2pts0
www.theatlantic.com 8y ago

Graph-Theoretic Analysis of Presidential Advisors

htiek
2pts0
www.nytimes.com 8y ago

New ethics courses in computer science

htiek
126pts148
mobile.nytimes.com 8y ago

This Cat Sensed Death. What If Computers Could, Too?

htiek
2pts0
mobile.nytimes.com 8y ago

Can an Algorithm Tell When Kids Are in Danger?

htiek
2pts0
www.nytimes.com 8y ago

Microsoft Moves to End Secrecy in Sexual Harassment Claims

htiek
170pts102
www.sfchronicle.com 8y ago

San Francisco Mayor Ed Lee Dead at 65

htiek
2pts0
mobile.nytimes.com 8y ago

Six Years After Fukushima, Robots Finally Find Reactors’ Melted Uranium Fuel

htiek
402pts179
welcometotheoryland.wordpress.com 9y ago

Nuclear Reactors and the Master Theorem

htiek
2pts0

This is something I created many, many years back for Stanford’s CS103 course as a lecture demo. Apologies for the lack of mobile support - I’ve always presented this from my laptop. :-)

You can use lowest common ancestor queries in conjunction with suffix trees to solve a lot of interesting string problems. For example, take two indices within a string, find their corresponding suffixes in the suffix tree, and then take their LCA. That gives you an internal node corresponding to the longest string that appears starting at both indices (this is called their "longest common extension.") You can use this as a subroutine in a bunch of genomics applications.