ArticleslgStudy

computer science

ARC (file format)

ARC (file format) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand ARC (file format) rather than just read about it. In short: ARC is a lossless data compression and archival format by System Enhancement Associates (SEA). The file format and the program were both called ARC.

Key takeaways

  • ARC (file format) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect ARC (file format) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of ARC (file format) from memory before moving on to harder problems.

Reference excerpt

ARC is a lossless data compression and archival format by System Enhancement Associates (SEA). The file format and the program were both called ARC. The format is known as the subject of controversy in the 1980s, part of important debates over what would later be known as open formats. ARC was extremely popular during the early days of the dial-up BBS. ARC was convenient as it combined the functions of the SQ program to compress files and the LU program to create .LBR archives of multiple files. The format was later replaced by the ZIP format, which offered better compression ratios and the ability to retain directory structures through the compression/decompression process. The .arc filename extension is often used for several unrelated file archive-like file types. For example, the Internet Archive used its own ARC format to store multiple web resources into a single file. The FreeArc archiver also uses a .arc extension, but uses a completely different file format. Nintendo uses an unrelated "ARC" format for resources, such as audio, or text, in GameCube and Wii games. Several unofficial extractors exist for this type of ARC file.

File Format Component files are stored sequentially within an archive, followed by an end-of-archive marker 0x1A 0x00. Each entry is preceded by a 29-byte header, which contains the directory information. All multi-byte values in the header are stored in little-endian byte order. Archive entries are normally maintained in sorted name order. The format of the 29-byte archive header is as follows:

Compression Methods The nature of the compression method is indicated by the header version number placed in each archive entry, as follows:

0 - End of archive marker (remaining bytes not present) 1 - Unpacked: old style header, no compression 2 - Unpacked: new style header, no compression 3 - Packed: RLE encoding, compression of repeated characters only. 4 - Squeezed: compression of repeated characters plus Huffman Squeezing. 5 - Crunched: Lempel-Ziv packing of repeated strings (old style), was added as of version 4.0 6 - Crunched: Lempel-Ziv packing of repeated strings (new style), was added as of version 4.1 7 - Crunched: LZW packing with improved hash function, which yields speed improvements of 20-25%, and was added as of version 4.6 8 - Crunched: dynamic Lempel-Ziv packing with variable code size and an adaptive block reset, was added as of version 5.0. 9 - Squashed: dynamic Lempel-Ziv packing, with larger hash table. A slight modification of type 8, first used by Phil Katz in his PKARC utilities. The primary difference is the use of a hash table twice as large as for type 8, and that this algorithm called Squashing, doesn't perform run-length encoding on the input data.

Format of the MS-DOS time stamp The 32-bit MS-DOS time stamp is limited to an even count of seconds, since the count for seconds is only 5 bits wide. Date fields:

Time fields:

CRC Computation Archive files use a 16-bit cyclic redundancy check (CRC) for error control. The particular CRC polynomial used is x16+x15+x2+1, which is commonly known as "CRC-16" and is used in many data transmission protocols (e.g. DEC DDCMP and IBM BSC), as well as by most floppy disk controllers. Note that this differs from the CCITT polynomial (x16+x12+x5+1), which is used by the XMODEM-CRC protocol and the public domain CHEK program (although these do not adhere strictly to the CCITT standard).

History In 1985, Thom Henderson of System Enhancement Associates wrote a program called ARC, based on earlier programs such as ar, that not only grouped files into a single archive file but also compressed them to save disk space, a feature of great importance on early personal computers, where space was very limited and modem transmission speeds were very slow. The archive files produced by ARC had file names ending in ".ARC" and were thus sometimes called "arc files". The source code for ARC was released by SEA in 1986 and subsequently ported to Unix and Atari ST in 1987 by Howard Chu. This more portable codebase was subsequently ported to other platforms, including VAX/VMS and IBM System/370 mainframes. Howard's work was also the first to disprove the prevalent belief that Lempel-Ziv encoded files could not be further compressed. Additional compression could be achieved by using Huffman coding on the LZW data, and Howard's version of ARC was the first program to demonstrate this property. This hybrid technique was later used in several other compression schemes by Phil Katz and others. Later, Phil Katz developed his own shareware utilities, PKARC and PKXARC, to create archive files and extract their contents. These files worked with the archive file format used by ARC and were significantly faster than ARC on the IBM PC platform due to selective assembly language coding. Unlike SEA, which combined archive creation and archive file extraction in a single program, Katz divided these functions between two separate utilities, reducing the amount of memory needed to run them. PKARC also allowed the creation of self-extracting archives, which could unpack themselves without requiring an external file extraction utility. Following the System Enhancement Associates, Inc. vs PKWARE Inc. and Phillip W. Katz lawsuit, SEA withdrew from the shareware market and developed ARC+Plus. This version included a full-screen user interface, with the last known version being 7.12. SEA was eventually sold to an unspecified Japanese company in 1992. The ARC format is no longer common on PC desktops, but most antivirus scanners can still uncompress any ARC archives found in order to detect viruses within the compressed files.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with ARC (file format)

Start with the simplest possible case. Write down what ARC (file format) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to ARC (file format) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about ARC (file format) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of ARC (file format)

In research
ARC (file format) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses ARC (file format) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
ARC (file format) is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1985 software, Archive formats, so understanding it makes those chapters shorter.
In everyday life
Look for ARC (file format) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “ARC (file format)” →

How to study ARC (file format) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what ARC (file format) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain ARC (file format) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is ARC (file format) in simple terms?

ARC is a lossless data compression and archival format by System Enhancement Associates (SEA). The file format and the program were both called ARC.

Why does ARC (file format) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study ARC (file format)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on ARC (file format).

Tags

  • 1985 software
  • Archive formats

Keep exploring