TFW he asks why then gives the answer and giggles, and I giggle along with him but am still clueless.
@mayiwang7 жыл бұрын
41:09 suffix trees
@casino-daddy6 жыл бұрын
thanks
@ShafaetAshraf4 жыл бұрын
Just adding this for those who got confused like me at 16:42. en.wikipedia.org/wiki/Ternary_search_tree The BST representation of trie is referring to this.
@zuhrymousa123458 жыл бұрын
Erik is bae
@videofountain10 жыл бұрын
Thanks. I am impressed with the clarity of the video. Notable improvement.
@王宇翔-s3t5 жыл бұрын
Erik Demaine! Great teacher, I have seen his course MIT 6.046J: Introduction to Algorithms
@dragon_warrior_4 жыл бұрын
6.006* 6.046 is advance
@devangsrivastava67364 жыл бұрын
OH I WAS SOOOOOO LOOKING FOR THISSSS
@adamkimberley25753 жыл бұрын
Someone definitely should have started a slow-clap when he said "tri-vial".
@manas_singh3 жыл бұрын
To all the people coming here I would recommend the official papers on McCreight's and Ukonnen's as well.
@raokblee21575 жыл бұрын
It seems to be meant for someone with a degree already in CS/IS. I find reading the lecture notes first is helpful.
@illiachalyk1952 жыл бұрын
On the site, it says that it is for graduate level, so I guess you're right
@TomerBenDavid8 жыл бұрын
computer science rules
@NitishRaj6 жыл бұрын
kzbin.info/www/bejne/oaawpnmrbq6Fqtk subscribe for more computer science lectures
@georgiansarghi56088 жыл бұрын
16:27 I don't understand the answer to the question. Isn't there a BST for each node?
@imprsnt7 жыл бұрын
No, Each Trie Node is broken down into a BST.
@xinli62435 жыл бұрын
I think you are correct, each node is a "tiny" BST, What confuses me was he said the space is O(T), I think it should be O(T*log(Sigma))
@xinli62435 жыл бұрын
sorry, I just realized it is O(T). If your are a java user, BST means each node has a TreeMap object in it.
@jojorxy39775 жыл бұрын
what's the meaning of predecessor? wiki says it's the max of the subset {y | y < x}.But what's the definition of '
@rishabhghosh1555 жыл бұрын
compare lexicographic ordering (ie a < c), instead of comparing magnitudes (ie with numbers 4 < 6)
@NaderHGhanbari2 жыл бұрын
In simpler terms, dictionary order. In other words: If you were to create a dictionary, would you put x before y or y before x?
@ilyasbambrik17655 жыл бұрын
I dont understand the gain between sorting with triplet and simple double cyclicshifts for the suffix array. Other than that, great course!
@petertweh55872 жыл бұрын
2111e3eee71w60
@nXqd9 жыл бұрын
Thanks for the great video :)
@dhruvjoshi87444 жыл бұрын
how does j-i th weighted ancestor of str[i:] gives all occurences of str[i:j], I don't get it, someone please help me with this.
@TERRY041043 жыл бұрын
Here is what I think how the example in the lecture works: say T = "banana" and we would like find all occurrences of T[1:4] which is "ana", the constant time query would be: 1. find the leave node representing T[1:]; 2. Going upward through the links from that leave node for 4 -1 = 3 characters; 3. We reach the last(highest) node through the ancestor links, then all the occurrences of T[1:4] would be all the leave nodes that are descendants of this node, in this case T[1:] and T[3:].
@facitenonvictimarum3 жыл бұрын
Come, mister tally man, tally me banana Daylight come and me wan' go home
@djn1384 жыл бұрын
I don’t like when people refer to anything in an algorithms context, not even a trie (which I would consider a pretty advanced data structure), as “trivial.”
@sanskarjaiswal82394 жыл бұрын
Is this course covers aho corasick algorithm
@siobhanahbois4 жыл бұрын
No, I just watched the whole thing and was disappointed, for some reason this video showed up in search results when searching for 'aho corasick'.
@MeaHeaR2 жыл бұрын
This is So Amazing, honestly I have absolutely NO idea what shes talking abbout or wear it uséd 😲😲😲
@obinnaubah90455 жыл бұрын
1:30 Doesn't ASCII have only 127 characters?
@djn1384 жыл бұрын
128, yes en.m.wikipedia.org/wiki/ASCII
@darkworld93994 жыл бұрын
@@djn138 extended Ascii have 256 characters..
@CEngineer20107 жыл бұрын
I would like to know what "vEB" stands for? I've never heard of this data structure before.
@lucacavalleri86497 жыл бұрын
van Emde Boas (trees) en.wikipedia.org/wiki/Van_Emde_Boas_tree
@saikumark63275 жыл бұрын
kzbin.info/www/bejne/np61ln15qtWVhLc
@dukedex50432 жыл бұрын
My IQ is too low for this. I'm studying ecology, which is about a thousand times easier.
@adityasheth4 жыл бұрын
Can anyone please explain why is the size of suffix tree O(T)?
@alanhasan28984 жыл бұрын
because there are |T| suffixes which gives you |T| nodes. You actually don't store the suffix string on each edge, you store an interval with the first and last character that it matches. This requires, however, that you keep the original string for reference.
@alanhasan28984 жыл бұрын
or a more simple answer, it's a compact trie.
@samiadel7043 Жыл бұрын
❤️💜❤️
@utkarshshukla52525 жыл бұрын
too much complicated, is there any book source ?
@mitocw5 жыл бұрын
There is no book for the course but there are a number of notes from the instructor and from a student. See the "Calendar and Notes" section of the course on MIT OpenCourseWare for the materials at: ocw.mit.edu/6-851S12. Best wishes on your studies!
@jonsnow19964 жыл бұрын
This is cool and all but this is no use
@davidjames16845 жыл бұрын
roughly 4 min elapsed, we want order T space. Why? Who cares about space in this day and age of gigabytes? Many times the more wasteful you are with storage, the quicker you can manipulate data. For example, a sparse hash table vs. a tightly packed one with collision resolution.
@stanislavnikolov74235 жыл бұрын
woooosh
@adityasheth4 жыл бұрын
Consider a text with 10^10 letters. Do u have space to store O(T^2) space now?
@aronsarmasi23684 жыл бұрын
I regularly work with data on the order of 10+ TB, and so yeah, I care about space.
@rraviravir4 жыл бұрын
many times is not always - if u can trade in a bit more space and get cpu, then u have a useful algo - or else just taking more space is wasteful if there is no payoff - so space complexity is important too
@facitenonvictimarum3 жыл бұрын
Really a primitive way to teach something so complicated: copying notes to a blackboard. Especially when you consider how much money those students are paying.
@sharjeeltahir55836 жыл бұрын
shit lectures, dont know why people are voting so high. Maybe its because of the brand
@dilipkumar2k66 жыл бұрын
Agreed :-)
@karthikk58955 жыл бұрын
Please don't pollute the learning atmosphere. You can share your opinion when you're intellect matches professors'.