Txhua cov ntaub ntawv khoos phis tawm tau ua los ntawm bytes. A byte tuaj yeem nqa cov txiaj ntsig ntawm 0 txog 255. Cov ntaub ntawv entropy yog qhov kev suav tawm uas qhia qhov tshwm sim ntawm qhov tshwm sim ntawm qee qhov bytes hauv ib daim ntawv.
Koj tuaj yeem pom kev soj ntsuam qhov kev ntsuas ntawm entropy siv cov histogram - kev faib tawm qhov tshwm sim ntawm kev rov ua qhov qub bytes hauv cov ntaub ntawv. Los ntawm cov entropy ntawm cov ntawv, peb tuaj yeem twv seb hom ntawv twg nyob rau hauv peb, saib tsuas yog nws cov histogram.
Rau kev ua qauv qhia, cia peb cov ntaub ntawv ntawm ntau hom thiab sib piv lawv cov keeb kwm. Cia tus thawj yog tus ntawv luam (*. TXT). Nws cov histogram yog muaj nyob hauv daim duab:
Cov ntawv nyeem tsuas muaj cov ntawv sau xwb. Txhua lub cim ntawm cov kab ntawv yog encoded nrog qee bytes nyob rau hauv raws li lub rooj encoding. Txawm hais tias muaj ntau qhov ntau ntawm cov encoding hom, nws pom tseeb tias muaj tsawg tus naj npawb ntawm cov tsiaj ntawv alphanumeric, uas feem ntau tsawg dua 255. Yog li ntawd, tsuas yog qee thaj chaw muaj nyob ntawm thawj cov histogram, thiab qee tus bytes tsis txhua.
Cov ntaub ntawv hauv qab no yuav yog hom PDF:
Cov ntaub ntawv no muaj txhua qhov ua tau bytes, raws li PDF yog sib txawv ntawm cov ntawv nyeem. Nws khaws ntau cov ntaub ntawv kev pabcuam: kev ua qauv, sau ntawv, duab, thiab lwm yam. Tab sis nws cov histogram qhia tau tias qee qhov bytes tshwm sim nrog kwv yees ntau npaum li cas, thaum lwm tus - ntau ntau dua li lwm tus. Li no ntau tawg ntho ntawm cov histogram, thiab feem ntau nws muaj qhov pom "ragged", txawm hais tias nws nyob tag nrho muaj qhov dav.
Thiab cov ntaub ntawv kawg yog zipped hauv 7Z hom:
Cov histogram no muaj ob lub ntsiab: thawj zaug, txhua bytes pom nyob rau hauv cov ntaub ntawv zipped nrog ntau dua lossis tsawg dua kev muaj peev xwm (qhov ncaj ncaj saum toj kawg nkaus), thiab ob, muaj qhov tsis muaj qhov chaw pub dawb tshaj cov histogram, uas qhia txog qhov tsis muaj yuav luag tiav ntawm redundancy xws li cov ntaub ntawv. Li no, peb tuaj yeem xaus tias lub tshuab luam ntawv lub algorithm hauv qee txoj kev tshwj xeeb "sib xyaw" lub bytes ntawm cov ntawv kom ua tiav lawv qhov ntau tshaj ntawm cov khoom faib.
Yog li, entropy hauv computer science, zoo li hauv physics, yog ib qho kev ntsuas ntawm kev tsis sib haum xeeb hauv cov kab ke, hauv qhov no, qhov tsis sib haum xeeb hauv kev faib tawm bytes hauv cov ntawv. Entropy tso cai rau koj los txiav txim siab cov qib ntawm cov ntaub ntawv thiab - ntawm kev ncaj qha - txog nws hom.