16. Strings

  Рет қаралды 126,210

MIT OpenCourseWare

MIT OpenCourseWare

Күн бұрын

Пікірлер: 57
@ScipioWasHere
@ScipioWasHere 8 жыл бұрын
TFW he asks why then gives the answer and giggles, and I giggle along with him but am still clueless.
@mayiwang
@mayiwang 7 жыл бұрын
41:09 suffix trees
@casino-daddy
@casino-daddy 6 жыл бұрын
thanks
@ShafaetAshraf
@ShafaetAshraf 4 жыл бұрын
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.
@zuhrymousa12345
@zuhrymousa12345 8 жыл бұрын
Erik is bae
@videofountain
@videofountain 10 жыл бұрын
Thanks. I am impressed with the clarity of the video. Notable improvement.
@王宇翔-s3t
@王宇翔-s3t 5 жыл бұрын
Erik Demaine! Great teacher, I have seen his course MIT 6.046J: Introduction to Algorithms
@dragon_warrior_
@dragon_warrior_ 4 жыл бұрын
6.006* 6.046 is advance
@devangsrivastava6736
@devangsrivastava6736 4 жыл бұрын
OH I WAS SOOOOOO LOOKING FOR THISSSS
@adamkimberley2575
@adamkimberley2575 3 жыл бұрын
Someone definitely should have started a slow-clap when he said "tri-vial".
@manas_singh
@manas_singh 3 жыл бұрын
To all the people coming here I would recommend the official papers on McCreight's and Ukonnen's as well.
@raokblee2157
@raokblee2157 5 жыл бұрын
It seems to be meant for someone with a degree already in CS/IS. I find reading the lecture notes first is helpful.
@illiachalyk195
@illiachalyk195 2 жыл бұрын
On the site, it says that it is for graduate level, so I guess you're right
@TomerBenDavid
@TomerBenDavid 8 жыл бұрын
computer science rules
@NitishRaj
@NitishRaj 6 жыл бұрын
kzbin.info/www/bejne/oaawpnmrbq6Fqtk subscribe for more computer science lectures
@georgiansarghi5608
@georgiansarghi5608 8 жыл бұрын
16:27 I don't understand the answer to the question. Isn't there a BST for each node?
@imprsnt
@imprsnt 7 жыл бұрын
No, Each Trie Node is broken down into a BST.
@xinli6243
@xinli6243 5 жыл бұрын
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))
@xinli6243
@xinli6243 5 жыл бұрын
sorry, I just realized it is O(T). If your are a java user, BST means each node has a TreeMap object in it.
@jojorxy3977
@jojorxy3977 5 жыл бұрын
what's the meaning of predecessor? wiki says it's the max of the subset {y | y < x}.But what's the definition of '
@rishabhghosh155
@rishabhghosh155 5 жыл бұрын
compare lexicographic ordering (ie a < c), instead of comparing magnitudes (ie with numbers 4 < 6)
@NaderHGhanbari
@NaderHGhanbari 2 жыл бұрын
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?
@ilyasbambrik1765
@ilyasbambrik1765 5 жыл бұрын
I dont understand the gain between sorting with triplet and simple double cyclicshifts for the suffix array. Other than that, great course!
@petertweh5587
@petertweh5587 2 жыл бұрын
2111e3eee71w60
@nXqd
@nXqd 9 жыл бұрын
Thanks for the great video :)
@dhruvjoshi8744
@dhruvjoshi8744 4 жыл бұрын
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.
@TERRY04104
@TERRY04104 3 жыл бұрын
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:].
@facitenonvictimarum
@facitenonvictimarum 3 жыл бұрын
Come, mister tally man, tally me banana Daylight come and me wan' go home
@djn138
@djn138 4 жыл бұрын
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.”
@sanskarjaiswal8239
@sanskarjaiswal8239 4 жыл бұрын
Is this course covers aho corasick algorithm
@siobhanahbois
@siobhanahbois 4 жыл бұрын
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'.
@MeaHeaR
@MeaHeaR 2 жыл бұрын
This is So Amazing, honestly I have absolutely NO idea what shes talking abbout or wear it uséd 😲😲😲
@obinnaubah9045
@obinnaubah9045 5 жыл бұрын
1:30 Doesn't ASCII have only 127 characters?
@djn138
@djn138 4 жыл бұрын
128, yes en.m.wikipedia.org/wiki/ASCII
@darkworld9399
@darkworld9399 4 жыл бұрын
@@djn138 extended Ascii have 256 characters..
@CEngineer2010
@CEngineer2010 7 жыл бұрын
I would like to know what "vEB" stands for? I've never heard of this data structure before.
@lucacavalleri8649
@lucacavalleri8649 7 жыл бұрын
van Emde Boas (trees) en.wikipedia.org/wiki/Van_Emde_Boas_tree
@saikumark6327
@saikumark6327 5 жыл бұрын
kzbin.info/www/bejne/np61ln15qtWVhLc
@dukedex5043
@dukedex5043 2 жыл бұрын
My IQ is too low for this. I'm studying ecology, which is about a thousand times easier.
@adityasheth
@adityasheth 4 жыл бұрын
Can anyone please explain why is the size of suffix tree O(T)?
@alanhasan2898
@alanhasan2898 4 жыл бұрын
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.
@alanhasan2898
@alanhasan2898 4 жыл бұрын
or a more simple answer, it's a compact trie.
@samiadel7043
@samiadel7043 Жыл бұрын
❤️💜❤️
@utkarshshukla5252
@utkarshshukla5252 5 жыл бұрын
too much complicated, is there any book source ?
@mitocw
@mitocw 5 жыл бұрын
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!
@jonsnow1996
@jonsnow1996 4 жыл бұрын
This is cool and all but this is no use
@davidjames1684
@davidjames1684 5 жыл бұрын
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.
@stanislavnikolov7423
@stanislavnikolov7423 5 жыл бұрын
woooosh
@adityasheth
@adityasheth 4 жыл бұрын
Consider a text with 10^10 letters. Do u have space to store O(T^2) space now?
@aronsarmasi2368
@aronsarmasi2368 4 жыл бұрын
I regularly work with data on the order of 10+ TB, and so yeah, I care about space.
@rraviravir
@rraviravir 4 жыл бұрын
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
@facitenonvictimarum
@facitenonvictimarum 3 жыл бұрын
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.
@sharjeeltahir5583
@sharjeeltahir5583 6 жыл бұрын
shit lectures, dont know why people are voting so high. Maybe its because of the brand
@dilipkumar2k6
@dilipkumar2k6 6 жыл бұрын
Agreed :-)
@karthikk5895
@karthikk5895 5 жыл бұрын
Please don't pollute the learning atmosphere. You can share your opinion when you're intellect matches professors'.
17. Succinct Structures I
1:20:11
MIT OpenCourseWare
Рет қаралды 14 М.
Necessity of complex numbers
7:39
MIT OpenCourseWare
Рет қаралды 2,8 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 95 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3,4 МЛН
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 19 МЛН
9.1 Knuth-Morris-Pratt KMP String Matching Algorithm
18:56
Abdul Bari
Рет қаралды 1,7 МЛН
2023 MIT Integration Bee - Finals
28:09
MIT Integration Bee
Рет қаралды 2,1 МЛН
Donald Knuth - The Knuth-Morris-Pratt algorithm (92/97)
5:28
Web of Stories - Life Stories of Remarkable People
Рет қаралды 13 М.
26. Chernobyl - How It Happened
54:24
MIT OpenCourseWare
Рет қаралды 2,9 МЛН
20. Savings
1:14:29
MIT OpenCourseWare
Рет қаралды 1 МЛН
K-d Trees - Computerphile
13:20
Computerphile
Рет қаралды 240 М.
Knuth-Morris-Pratt(KMP) Pattern Matching(Substring search)
12:50
Tushar Roy - Coding Made Simple
Рет қаралды 1,1 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 95 МЛН