Skip to main content

Posts

Showing posts with the label data

Huffman Coding

  Huffman coding is a lossless data compression algorithm named after its inventor, David A. Huffman. It is a variable-length prefix coding algorithm, which means that it assigns shorter codes to the more frequently occurring symbols in a dataset and longer codes to the less frequently occurring symbols. This results in a smaller overall size of the compressed data. How it Works The Huffman coding algorithm starts by building a frequency table of all the symbols in the dataset, which shows the number of occurrences of each symbol. Then, it creates a binary tree with each symbol represented by a leaf node. The parent node of two children represents the sum of their frequencies. The process continues until there is only one node left, which is the root of the tree. Each leaf node in the tree is assigned a unique binary code, where a 0 is assigned to the left child and a 1 is assigned to the right child. The code for each symbol is the path from the root of the tree to the correspo...

JSON vs YAML

JSON JSON(JavaScript Object Notation) is a human-readable data exchange format.  JSON is built on two structures: A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array. An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence. JSON's basic data types are: Number : a signed decimal number that may contain a fractional part and may use exponential E notation, but cannot include non-numbers such as NaN. The format makes no distinction between integer and floating-point. JavaScript uses a double-precision floating-point format for all its numeric values, but other languages implementing JSON may encode numbers differently. String : a sequence of zero or more Unicode characters. Strings are delimited with double-quotation marks and support a backslash escaping syntax. Boolean : either of the values true or false Arra...

Get access to everyone's Aadhaar data at Rs 500--A Tribune Report

Time and again UDAI(Unique Identification Authority of India) has been asserting that our Aadhaar data is secure and people of India can rest assured about the protection of our personal and biometric data. We have seen security flaws surfacing on the Internet over alleged data breach of Aadhaar and again Tribune has published about the existence of major security breach happening on daily basis. Our Aadhaar data, which is supposed to be highly secure in the hands of UIDAI is available to anyone who can pay Rs. 500. According to Tribune, people are approached via WhatsApp for the service using which you are provided the portal and the username & password to use the portal. Using this service you can feed Aadhaar number and you will be able to download all personal details. This service is being provided at the mere amount of Rs. 500. Not only this, if you pay Rs. 300 more, you will be able to download the Aadhaar card also. The government of India is trying to ma...