Just note that prefix codes are a subset of uniquely decodable codes. A code can be uniquely decodable but not prefix code.
@jorecode84863 жыл бұрын
your video was more helpfull than 10 hours of my teacher trying to explain this
@JesseBourretGheysen3 жыл бұрын
I go to your website all the time, and never knew that you had a youtube channel. Awesome work, and thank you.
@malharjajoo73935 жыл бұрын
At 5:30 - it would be useful to mention that each node stores the characters found in the leaves below it. This helps to "find" a character when traversing from the root by simply checking which of it's sub-children contains the desired character.
@hrs7305 Жыл бұрын
That’s is entirely incorrect
@hrs7305 Жыл бұрын
You don’t find a character in this ds, it’s utility is to compress and decompress data
@BRabbid Жыл бұрын
Yeah, it doesn't matter if each node stores the characters below it because when we get the compressed data, we're already given the compressed binary representation for each node. Following this representation, 0 means traverse left and 1 means traverse right, we can find the symbol that we want.
@julievrhackzor3 жыл бұрын
Its people like you that keep this world spinnin
@SpacePunk10007 ай бұрын
wait shouldn't the larger freq. be assigned 0?
@mysmallcap6 жыл бұрын
Please explain how an internal node can be inserted in a heap. When it already has left and right children, how can we heapify the tree without actually disrupting the left and right children of this internal node?
@kicksomeup6998 Жыл бұрын
By insertion a node into a minheap, do you actually mean inserting it into the Huffman tree? I think tree and heap and seperate data structuees here.
@petarulev69772 жыл бұрын
You could have briefly explained about the heap structure
@kaustubhvedak28023 жыл бұрын
i will like to get detailed explanation video on this the functions are to complicated to understand and as u said at 6:50 about min heap there are no proper videos for min heap the concept is clear but to create a min heap is different and applying this in this concept is totally different plzz explain the code in detail
@puppetpaandu44703 жыл бұрын
Thanks for clear explanation which is lacking in many other vidoes
@M07Status Жыл бұрын
1:47 it's Said Min Heap But we are constructing Max heap ??
@musicalspace68855 жыл бұрын
I want to ask, are compression and decompression same things as encoding and decoding the message?
@austinoquinn8155 жыл бұрын
kind of, compression and decompression are forms of encoding and decoding that are meant to take up less space.
@martinhawes56473 жыл бұрын
@@austinoquinn815 I never thought about this distinction, but you’re right.
@gulkayma6 жыл бұрын
The size of the file I compressed was larger than the original. What can I do for it? FILE *file = fopen("C:/Nutuk.txt", "rb"); FILE *file2 = fopen("C:/CompressFile.txt", "wb"); char ch; while(!feof(file)){ ch = getc(file); //forexample my code blog if(ch=='a' || ch=='A'){ fprintf(file2,"011"); } .... fclose(file)
@ramireddylohithreddy68522 жыл бұрын
LOL...
@stith_pragya Жыл бұрын
Thank You So Much for this wonderful video.....🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@kiranthota51372 жыл бұрын
Thanks for the resource, i would like to request if the explanation is more detailed it would be so helpful, now it is cofusing.
@raip7 жыл бұрын
How to take decision whether to go right or left, e.g. for we went LEFT from ROOT why? what is the property we should look to take the decision whether to go LEFT or RIGHT?
@GeeksforGeeksVideos7 жыл бұрын
I believe, you are concerned about getting the codes for characters. In that case, since we are printing the whole tree, we are not really concerned whether to go left or right. We traverse all the root to leaf paths and print the path at every leaf node. Hope this solves your confusion. :)
@ΑντρέαςΣωτηρίου-π8γ7 жыл бұрын
help,what is the point of minHeapify function in the code?
@austinoquinn8155 жыл бұрын
@@ΑντρέαςΣωτηρίου-π8γ it sorts the letters by the minimum frequency
@skidipap8750 Жыл бұрын
why a has lower binary number then b? a has lower frequency than b, it is not logical.
@baconmunchh2 ай бұрын
So the Indian guy on KZbin explaining a concept better than department heads with multiple PHDs was true all along
@rageydo52225 жыл бұрын
That is not a min heap
@chawza84025 жыл бұрын
I think they do, he just doesn't show it. he uses the min-heap to select the minimum node from the table
@rakeshraj43415 жыл бұрын
#geeksforgeeks share this video
@ronstewtsaw7 жыл бұрын
This was very helpful to me. I did have to start, stop and rewind a couple of times.
@jasmeenx26076 жыл бұрын
where did the frequencies come from
@GeeksforGeeksVideos6 жыл бұрын
They are derived from the input data.
@azmals.m57564 жыл бұрын
Good explanation...its help me
@tamisuefarber54104 жыл бұрын
Thank you! You really helped me to understand the logic.
@salmachakroun45902 жыл бұрын
This is in C language ?
@lakshitpaliwal6 жыл бұрын
what we do if frequency are same ?
@547vaibhav6 жыл бұрын
why the quality of the video is 360p at max. you must record it in 720p atleast.
@RahmaElsaeed-cf6ru5 жыл бұрын
where the decoder please?
@austinoquinn8155 жыл бұрын
To decode you just walk through the string (left to right) of digits and the first letter you can make with the characters is the one you print. to decode you need to know either the encodings or the frequencies of each character. It may look like this for i in String: code=code+i if(code=an encoding from the list of encodings): print(the encoded letter) code=""
@Anca1202I5 жыл бұрын
if I have 3 characters with the same frequency ,how I choose them?
@MahbuburRahman-uc7np5 жыл бұрын
you can choose any one of them .
@JosephWilliams-v9xАй бұрын
Lee Linda Lewis Mark Martin Robert
@MariaPaula-fc3mh5 жыл бұрын
what is this all about ,why do we study or need huffman coding,what is a frequency and why we need it? I would like an overwiew or explanation on this topic..
@nixuser19804 жыл бұрын
It's the basic idea behind lossless data compression.
@reneew5 жыл бұрын
What's the use of *
@lilac_moon18962 жыл бұрын
Thank you for this video😇
@pihaaaa Жыл бұрын
ily geeksforgeeks
@simranrastogi49266 жыл бұрын
Nice explanation
@frustratedmf545 жыл бұрын
Why do you keep saying min heap?? After adding new internal node, it's not a min heap anymore!
@godtux5 жыл бұрын
It's still is, because a heap put new stuff 'in the good place', ie ordered.
@austinoquinn8155 жыл бұрын
yes it is
@GaryLee-j2v2 ай бұрын
Thompson George Jones Betty Garcia Timothy
@randomguy5743 жыл бұрын
Thanks sar
@ramakrishnavelpuri13902 жыл бұрын
Thanks!
@vaggelismanousakis61474 жыл бұрын
Thank you! Why did you use 360p, it's 2020. a 720p is a minimum i think..
@Walen2334 жыл бұрын
who the f cares
@halcion15163 жыл бұрын
thank you!
@AbdussamadJnr4 жыл бұрын
Thanks Well explained 👍 👍 👍
@ishanksharma27855 жыл бұрын
you sound like Ben Tennison from "Ben 10 Alien Force"
@Frient5 жыл бұрын
Where’s the video where we learn about poo in the loo?
@yatharth_er7 жыл бұрын
maje aagaye
@rohandevaki43492 жыл бұрын
can you provide java code?
@krypto72646 жыл бұрын
0:01 chai peelo frands!!
@Rahulmishra-iv9dt6 жыл бұрын
kryptoknight pilao
@alenthomaskattakayam80904 жыл бұрын
can u send me the slides......
@akashdaswani23086 жыл бұрын
Thanks
@BudSmoke376 жыл бұрын
thanku brother.
@amritdaimarydaimary44887 жыл бұрын
good work
@GeeksforGeeksVideos7 жыл бұрын
Thanks
@JacoxNovak6 жыл бұрын
thanks
@GeeksforGeeksVideos6 жыл бұрын
You're welcome Jacox :)
@konradiwan26616 жыл бұрын
Thanks for the video, it helped me
@GeeksforGeeksVideos6 жыл бұрын
Thanks Konrad Iwan :)
@GaryLee-j2v2 ай бұрын
Hall Sarah White Lisa White Nancy
@sayad40424 жыл бұрын
WHERE MY CS 335 HOMIES AT
@vanesamihailova25485 жыл бұрын
vrska nemass
@kalamii_32156 жыл бұрын
stooooppp!! this cringey indian accent is pissing me off
@Ashley-gn6ji5 жыл бұрын
Oh no, God forbid someone from another country uploads a KZbin video.
@kalamii_32155 жыл бұрын
@@Ashley-gn6ji nah thats not the problem, it's the accent.. it's too cringey and distracting
@Ashley-gn6ji5 жыл бұрын
@@kalamii_3215 But that's his accent. If you don't like it you don't have to watch the video or comment on it
@kalamii_32155 жыл бұрын
@@Ashley-gn6ji well whats the comment section for?, i was just giving my opinion
@ishanksharma27855 жыл бұрын
you sound like Ben Tennison from "Ben 10 Alien Force"
@garrett64085 жыл бұрын
you sound like Ben Tennison from "Ben 10 Alien Force"
@sadmanpranto90264 жыл бұрын
how ??
@garrett64084 жыл бұрын
@@sadmanpranto9026 what do you mean?
@sadmanpranto90264 жыл бұрын
@@garrett6408 I've watched Ben 10 Alien Force... he doesn't sound like Ben at all
@garrett64084 жыл бұрын
@@sadmanpranto9026 you sound like Ben Tennison from Ben Ten Alien Force
@sadmanpranto90264 жыл бұрын
@@garrett6408 no... I sound like a duck with sort throat, runny nose and severe prawn allergy.