From 1b2b0c936547b1995bcd5242017e414e9c6041df Mon Sep 17 00:00:00 2001 From: Ravin Kumar Date: Wed, 22 Feb 2017 10:51:08 +0530 Subject: [PATCH] Add files via upload --- Document.txt | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++ ravdec.pyc | Bin 0 -> 2895 bytes 2 files changed, 67 insertions(+) create mode 100644 Document.txt create mode 100644 ravdec.pyc diff --git a/Document.txt b/Document.txt new file mode 100644 index 0000000..6db97a3 --- /dev/null +++ b/Document.txt @@ -0,0 +1,67 @@ +##################################################################### + Ravdec- LossLess Data Compression +Algorithm Designer, and Module Developer: Mr. Ravin Kumar +Email : mr.ravin_kumar@hotmail.com +linkedin : https://in.linkedin.com/in/ravinkumar21 +##################################################################### +Ravdec is a module written in python, which is based on a Lossless Data Compression Algorithm designed by Mr.Ravin Kumar on +19 September, 2016.This compression algorithm have a fixed compression ratio of 1.1429 in all possible cases, It accepts data +of following format: alphabets,numbers, and symbols. +Example: It can compress 1 GB to 896 MB. + +=======Application of Ravdec ========= + +It can be used where the machine generates data at a very fast rate, that it became difficult for other algorithms to calculate +the propability of a symbol, as data keeps on getting large, and is transmitted over the network with a much faster rate. In +this case also, the above module, and algorithm gives the same compression ratio. + +=======Application of Ravdec ========= + +NOTE- The data that is to be compressed should have length of multiple of 8.(i.e 8 elements, or 16 +elemnts or 24...so on) + +1) file_compression(filename) : +It is used to read data from a file, and create a compressed file wit extention of ".rav" + +2) file_decompression(filename) +It is used to read data from a previously compressed file, and create a decompressed file wit extention of ".dec" + + + Example: + ------------------------------ + import ravdec + + # to compress the file have elements of multiple of 8. + ravdec.file_compression("filename.txt") + + # to decompress the previously compressed file. + ravdec.file_decompression("filename.rav") + + ------------------------------ + +3) net_compression("data to be compressed of length of multiple of 8 ") - To compress the original data to transmit, that is + needed to be transmitted. +4) net_decompression(" previously compressed data") - To decompress the previously compressed data, that is received. + +It is used where the machine generates data at a very fast rate, that it became difficult for other algorithms to calculate the +propability of a symbol, as data keeps on getting large, and is transmitted over the network with a much faster rate. + +Example: +------------------------------ +import ravdec + +# for compression +compressed_data=ravdec.net_compression("ASDFGHJK") + +# note- data to be compressed should have length of multiple of 8.(i.e 8 elements, or 16 elemnts or 24...so on) +# for decompression + +decompressed_data=ravdec.decompression("previously compressed data") + +------------------------------ + +This module is a freeware, build with the intention to help communities in data compression aspects. +->Application of this module: +It can be used where the machine generates data at a very fast rate, that it became difficult for other algorithms to +calculate the propability of a symbol, as data keeps on getting large, and is transmitted over the network with a much faster +rate. In this case also, the above module, and algorithm gives the same compression ratio. diff --git a/ravdec.pyc b/ravdec.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2d299d0e2970245d2010422dc88702c702784272 GIT binary patch literal 2895 zcmds3%Z?jG6us4cw(V(qLOjj{h!YZ!$zl`*7FnPO2_#sJP!Eztq-bQ^ozTY5?wUuW zZm}5Hu?9Bm`2Y|f!A~IZ3H$)(+;;3_h7cl+6ojQd^}1DctLof)T=;XN_N)BfAIkD) zP`-~Z=>YmVzgo;aJ1q`P|!+2f}-s8N-!RB>LxxmKERippvQ`&I{(Cx%t&fv zWaLC7bJ#z^LXN;LD@cm93bLIQ#iCJUFV^m0glk~1BwV9JtE?=xC}}>mB56f}vb3|R z1Qp3#IsQ?s+ND*_`SAX?lGSJqtF$H;*G1=AR+r<^(j5J2{+VPAv9PU6+K_Gfw;>k$ zY^blEq@Dy->1LiBUsX>$b=Q?IMPkPU*vy0Lo-F>5e(L5eR~A1@fANjOdp2YGm8T)KaZwb4!_7P(NxQ$II^MEhT~Zh_Q)ZeUF1Q8#RiiQw}ADq zq2{rDH>E!@~@QcAw61<;lU=MsuuHMgx8w4#s-cNFB73 zxwb}nRdPEyvrG; zX&U%yrUfjcUIT8KZG0_lwT)*kIBm0O+8En(YG%mUPX*Zz=y^Fo_S2~#`~JTZWOyco z69VI-k2T)zpNY4x&c+*~wuz{H!N|M*yvXzU);=HZiMRtn{8gO!WmGBzj zb;1=wmvEJE4e(65b04KUPPZmJCnt9R|Bm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