Archiving presentation. Presentation on computer science "Archivers"

« Data archiving"


Basic Concepts

  • Archivers- These are programs that pack and unpack files.
  • Package(archiving) – placing (downloading) source files into archive files in compressed or uncompressed form.
  • Unboxing(unzipping) - the process of restoring files from an archive exactly as they were and loading them into the archive. When unpacking, files are extracted from the archive and placed on disk or in RAM.
  • Information compression

Archivers

  • Archivers are one of the most common utility programs designed for archiving and packaging files by compressing information.
  • Archive file– this is a specially organized file containing one or more files in compressed or uncompressed form and service information (file names, date and time of their creation, size, etc.)

Types of archivers

File archivers

Pack one or more files into a single archive file. To unpack an archive file, the same archiver is usually used.

Software archivers

They allow you to pack one single file at one time - an EXE-type executable program.

Disk archivers

Allows you to programmatically increase the available space on your hard drive. A typical disk archiver is a resident driver that, unnoticed by the user, archives any information written to the disk and unpacks it back when read.


Information compression

  • Information compression is the process of converting information stored in a file into a form that reduces redundancy in its presentation and, accordingly, requires less memory for storage.

The compression ratio depends :

  • program used
  • compression method
  • source file type

The most highly compressible files are:

  • graphic files (*.bmp, *.png and some others)
  • text files (*.doc, *.txt, *.xls, etc.)

Poorly compressed files executable programs (*.exe, *.com) and load modules (*.dll, for example)


Types of archives

  • self-extracting;
  • multi-volume;
  • continuous.

SELF-EXTRACTING ARCHIVES

  • Self-extracting archives is a bootable, executable module that is capable of independently unzipping the files contained in it without using an archiver program. Such archives are called SFX archives

MULTI-VOLUME ARCHIVES

  • Multi-volume archive– this is an archive “split” into a number of parts (volumes), whereby: the first volume of a multi-volume archive receives the extension *.rar, and the extensions of subsequent volumes are numbered as *.r00, *.r01, *.r02, etc. up to *.r99.

CONTINUOUS ARCHIVE

Continuous archive is a RAR archive, packaged in a special way, in which all compressed files are considered only in the RAR format; this type of archive does not exist for the ZIP format. Compression method for RAR archives– normal or continuous – user selectable.


WinRar program

WinRAR is a file archiver for Windows with a high compression ratio, and is one of the best archivers in terms of the ratio of compression ratio to operating speed.

Key Features

  • Creating format archives RAR And ZIP .
  • Unpacking format files CAB , ARJ , LZH , TAR , GZ , ACE , UUE , BZ2 , JAR , ISO , 7z , Z .
  • Special multimedia compression algorithm.
  • Ability to work with files up to 8.589 trillion (10 12) gigabytes.
  • Creation self-extracting , continuous And multi-volume archives. Adding additional information to archives recovery information archive in case of damage, including the creation of special recovery volumes that allow you to restore a multi-volume archive if parts with information are damaged.

WinRar shell


Interface


Self-extracting archive


Practical work “Using archiver programs”

  • On the desktop create a folder with the name of your group.
  • Copy the Database document from the desktop to the folder, and copy the pictures (3) from the Pictures folder.
  • Folder with the surname in the menu, select the Add to archive function. Create 2 archives.
  • In the window that appears, specify: Archive name, format (Rar,)(Zip), specify compression method (good, fast). In the archiving parameters, specify SFX archive.

Unpacking files

  • Select the archive and in the context menu select the command “Extract files”, “Extract to current folder”

Crossword

  • What is the name for placing source files in archive files in compressed or uncompressed form?
  • What is the process of converting information called?
  • What is the process of recovering files from an archive called?
  • What is the name of the program that packs and unpacks files?

Crossword


Thank you for your attention






Compression methods. Lossy compression With lossy compression, some information is lost, but this remains invisible to humans. For example: – When compressing video recordings of fast-moving objects, small details can be neglected; –When compressing sound with quiet sounds against the background of loud ones; –When compressing graphics, replace the color of neighboring pixels with a similar value.






Huffman Algorithm The Huffman method takes into account the probability of objects appearing and encodes them with codes of varying lengths. For example, in the Russian alphabet the letters O, E, A are common, F, Ts, Shch, E are rare. The more often a letter appears, the shorter the code used for it. This coding principle is used in Morse code: E A – E –


Lempel-Ziv-Welch algorithm The LZW (Lempel, Ziv, Welch) algorithm was invented in 1977 by mathematicians Abraham Lempel and Jacob Ziv, and in 1984 it was modified by Terry Welch. This method is a “sliding window” method. The algorithm encodes strings of characters (patterns), placing them in a table and replacing them with a shorter code. If such a chain is encountered again, then not the chain itself, but its shorter code will be placed in the output file.


RLE algorithm RLE (Run Length Encoding) run length encoding: a series of repeating bytes is replaced by one repeating byte and a repetition counter ABVGDEJZI?




WinRAR features Full support for archives in RAR and ZIP formats; Original highly efficient data compression algorithm; Unpacking files in CAB, ARJ, LZH, TAR, GZ, ACE, UUE, BZ2, JAR, ISO, 7Z, Z formats; Creation of self-extracting, continuous and multi-volume archives; Adding additional information to archives to restore the archive in case of damage; Ability to protect the archive with a password.


Self-extracting archive Self-extracting archive (SFX self-extracting archive) is a file with a *.exe extension that combines an archive and executable code for unpacking it. Such archives, unlike regular ones, do not require a separate program to extract files from the archive, but are larger in size. Using self-extracting archives is convenient when it is not known whether the user to whom the archive is being transferred has the appropriate unpacking program.


Continuous archive Continuous archive is an archive packaged in such a way that all compressed files are treated as one continuous data stream. The advantages of continuous archive include a significant increase in the compression ratio. Moreover, the smaller the average file size, the larger the files themselves and the more similar files to each other, the greater the compression ratio. The disadvantage of a continuous archive is that adding or deleting files is slower than when working with regular archives.


Multivolume archive Multivolume archive is an archive divided into several parts (volumes). The need to split the archive into volumes arises, for example, when using floppy disks, if after compression the size of the archive exceeds the size of one floppy disk. The ability to work with multi-volume archives can be useful when working with by email, when the mail program allows you to attach only one file for sending or the mail server allows you to attach a file of limited size to the letter.




Extracting files from an archive using the context menu Extract files... allows you to specify the path for extraction. Extract to current folder will extract files from the archive to the current folder. Extract to will create a folder with the name of the archive and place the extracted files there. Creating an archive using the context menu Add to archive... allows you to add files to the archive by specifying the location, name, archive format, compression method and archiving parameters. Add to archive.rar will create an archive with the same name as the file or folder and default settings.








Compression methods. Lossy compression With lossy compression, some information is lost, but this remains invisible to humans. For example: – When compressing video recordings of fast-moving objects, small details can be neglected; –When compressing sound with quiet sounds against the background of loud ones; –When compressing graphics, replace the color of neighboring pixels with a similar value.






Huffman Algorithm The Huffman method takes into account the probability of objects appearing and encodes them with codes of varying lengths. For example, in the Russian alphabet the letters O, E, A are common, F, Ts, Shch, E are rare. The more often a letter appears, the shorter the code used for it. This coding principle is used in Morse code: E A – E –


Lempel-Ziv-Welch algorithm The LZW (Lempel, Ziv, Welch) algorithm was invented in 1977 by mathematicians Abraham Lempel and Jacob Ziv, and in 1984 it was modified by Terry Welch. This method is a “sliding window” method. The algorithm encodes strings of characters (patterns), placing them in a table and replacing them with a shorter code. If such a chain is encountered again, then not the chain itself, but its shorter code will be placed in the output file.


RLE algorithm RLE (Run Length Encoding) run length encoding: a series of repeating bytes is replaced by one repeating byte and a repetition counter ABVGDEJZI?




WinRAR features Full support for archives in RAR and ZIP formats; Original highly efficient data compression algorithm; Unpacking files in CAB, ARJ, LZH, TAR, GZ, ACE, UUE, BZ2, JAR, ISO, 7Z, Z formats; Creation of self-extracting, continuous and multi-volume archives; Adding additional information to archives to restore the archive in case of damage; Ability to protect the archive with a password.


Self-extracting archive Self-extracting archive (SFX self-extracting archive) is a file with a *.exe extension that combines an archive and executable code for unpacking it. Such archives, unlike regular ones, do not require a separate program to extract files from the archive, but are larger in size. Using self-extracting archives is convenient when it is not known whether the user to whom the archive is being transferred has the appropriate unpacking program.


Continuous archive Continuous archive is an archive packaged in such a way that all compressed files are treated as one continuous data stream. The advantages of continuous archive include a significant increase in the compression ratio. Moreover, the smaller the average file size, the larger the files themselves and the more similar files to each other, the greater the compression ratio. The disadvantage of a continuous archive is that adding or deleting files is slower than when working with regular archives.


Multivolume archive Multivolume archive is an archive divided into several parts (volumes). The need to split the archive into volumes arises, for example, when using floppy disks, if after compression the size of the archive exceeds the size of one floppy disk. The ability to work with multi-volume archives can be useful when working with email, when the email program allows you to attach only one file for sending or the mail server allows you to attach a file of limited size to a letter.




Extracting files from an archive using the context menu Extract files... allows you to specify the path for extraction. Extract to current folder will extract files from the archive to the current folder. Extract to will create a folder with the name of the archive and place the extracted files there. Creating an archive using the context menu Add to archive... allows you to add files to the archive by specifying the location, name, archive format, compression method and archiving parameters. Add to archive.rar will create an archive with the same name as the file or folder and default settings.



mob_info