• 0 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: June 22nd, 2023

help-circle
  • Security is there to make sure you’re not carrying illegal stuff, as long as that’s fine, the only time they maybe check the id is before giving you the boarding pass.

    Looks like the guy didn’t have a boarding pass altogether, so not sure how he got into the plane.

    There is usually a person or an automatic gate that checks your pass before allowing you through the plane. However that’s more like a ticket check and to make sure people don’t get on the wrong planes, it’s probably not super hard to get around.







  • Yes, it’s very efficient and the core of what complession formats like .zip do.

    The main difference to your idea is that computers count in binary like 0, 1, 10, 11, 100, 101 and so on and that you don’t want to assign these very low codes words directly. Say you’d have assigned 1 the most common word, then that will would be encoded very short, but you’d sort of take the one away from all the other codes, as you don’t know if 11 is twice the most common word or once the 11th (3rd in decimal) common word.

    Huffman essentially computes the most optimal word assignments mathematically.

    The main other difference between your suggestion and most compression algorithms is that you wouldn’t use a huge dictionary in real time and loading it and looking into it would be very slow. Most compression algorithms have a rather small dictionary buildin and/or they build one on the fly looking at the data that they want to compress.