Git Product home page Git Product logo

datastructs's Introduction

DataStructs

This repository contains two separate exercises that both of them are about an educational introduction in Data Structures and Files I developed during my studies.

The first exercise has to do with Dictionaries, Indexes, and storing data to memory. Specifically, we had to read an unknown number of files, create a paged Index containing the file, and the location in 'bytes' from the beginning of the file that each word appears (a page of the Index has multiple appearances but refers only to a specific vocable) repeatedly. Then, generate a Dictionary containing each unique vocable and the page in the Index that their information exists. Finally, storing Dictionary and Index to non-volatile-memory and let the user search information for these files using generated records.

The source files of this exercise are available here.

The second exercise has to do with dynamic hashing both in the main memory and disk. In this task, we had to create a hash table, insert/search/delete elements to it, repeat this procedure for a different number of items, and compare the results for each experiment.

The source files of this exercise are available here.

Usage

Move to the src/ directory of each exercise, then follow the instructions below:

  1. In both of those projects in order to create .class files that contain java bytecode run in a UNIX-based machine:
make
  1. In order to execute bytecode of each project on Java Virtual Machine (JVM) run:
make run
  1. To clean executables and generated files
make clean

Known Bug

  • Fix OutOfBoundsException that sometimes occurs when handling a large number of elements.

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.