Git Product home page Git Product logo

dedup_redup's Introduction

dedup_redup

File Deduplication / Reduplication C++11 solution

General

Deduplication is a specialized form of compression for when the granularity of redundancy is large. Deduplication comes in many shapes and forms, but one of the simplest implementations involves the following three steps:

Pick the size of a chunk, which is the granularity (e.g., 1KB) at which you want to deduplicate a file. Inspect every non-overlapping chunk in the file (e.g., 0th KB, 1st KB, ..., 99th KB), and identify the unique ones. For each unique chunk, take note of where they are found in the file (e.g., 0, 1, 2, ..., 99).

Task Overview

In this challenge, you'll implement two functions: dedup() and redup(). The first function deduplicates a large input file to a smaller output file, which is then used by the second function to reconstruct (or reduplicate) the original file. Both functions take two arguments: the path of the file it needs to read, and the path of the file it needs to create. Both functions return nothing.

In addition to the code, we also expect you to write a short "design document" that describes your solution at a high level: how your algorithm works, how your output file is structured, difficulties you had to overcome, kinks you couldn't iron out, etc. Please include the design document as a comment block at the very top of your solution.

dedup_redup's People

Contributors

wildneuro avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.