Giter VIP home page Giter VIP logo

Necktwi's Projects

5-heap icon 5-heap

Assignment 2 Write a class (or a set of functions, if you are using C) that implements a 5-Heap (i.e., each node has up to 5 children) using an array as discussed in class. Each node of the heap contains two elements: a priority level (integer), and a string value. Implement insert(priority, string_value) that inserts an element in the heap, and delete_max() that removes the value with the highest priority and returns the corresponding string value. (Do not implement delete_min). Since delete_min is not required, optimize the heap structure for delete_max. Write a program that inserts 1,000 random elements in your 5-Heap, and then outputs them from the highest priority value to the lowest using delete_max(). (The heap will be empty at the end of the program.) Output only the result of delete_max(), one element at a time, such as: 681469 "element 1" 529834 "element 2"

acme-tiny icon acme-tiny

A tiny script to issue and renew TLS certs from Let's Encrypt

apollo icon apollo

An open autonomous driving platform

battletank icon battletank

An open-world head-to-head tank fight with simple AI, terrain, and advanced control system in UE4

bcmrpi3-kernel-bis icon bcmrpi3-kernel-bis

Automated weekly build of the default branch 64-bit bcmrpi3_defconfig (+ tweaks) Linux kernel for the RPi3 B / B+

binarysearch icon binarysearch

Assignment 1 Write your own implementation of linked lists and one of binary search trees that contain integers. For the purpose of this assignment, you only need to implement "insert" and "find" as follows: If you are writing your code in Java: list.insert(x) list.find(x)

clang icon clang

Mirror of official clang git repository located at http://llvm.org/git/clang. Updated every five minutes.

colorzero icon colorzero

Another color manipulation library for Python (originally from picamera)

comet icon comet

Comet is an open source photo realistic 3D rendering software.

demo1 icon demo1

CMake add_subdirectory demo

elogind icon elogind

The systemd project's "logind", extracted to a standalone package

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.