Giter Site home page Giter Site logo

data-structure's Introduction

Data structure (Estructuras de datos)

  • Is a particular way to data organize in a computer to be used efficiently.
  • Especially to management big data information as databases.

Queue (Cola | Fila)

Is a sequence of elements in which the operation of insert (enqueue) is done at one end (back) and the operation of extraction (dequeue) for the other (front).

  • Mode of access is FIFO - First in, First out

Queue image

Basic methods

  • constructor
  • enqueue
  • dequeue
  • getSize
  • isEmpty
  • peek
  • print

Stack (Pila)

Is an ordered list of data which enables to save and get data

  • Mode of access is LIFO - Last in, First out

Stack image

Basic methods

  • constructor
  • push
  • pop
  • getSize
  • isEmpty
  • peek
  • print

Linked list (Lista enlazada)

Is a linear collection constituted by sequence of nodes where they are stored data fields arbitrary and a reference of the next node.

Linked list image

Basic methods

  • Node constructor
  • LinkedList constructor
  • add
  • insertAt
  • removeFrom
  • removeElement
  • isEmpty
  • getSize
  • print

Doubly Linked List (Lista doblemente enlazada)

Is a structure of data, consisting of set of nodes sequentially linked. Every node have two fields, called links, is reference of the next node and previous node

Doubly linked list image

Basic methods

  • Node constructor
  • LinkedList constructor
  • addToHead
  • addToTail
  • insertAt
  • removeFromHead
  • removeFromTail
  • removeData
  • print
  • printReverse
  • getSize
  • isEmpty

Hash table (Tabla hash)

Difference between to array

The problem is to remove element of array, the array require passing indexation of all elements, and it is inefficient.

License ๐Ÿ”ฅ

Copyright ยฉ 2017-present Oscar Amado ๐Ÿง”

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.