GithubHelp home page GithubHelp logo

clunaslunas / msl-clang-001 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mbrow188/msl-clang-001

0.0 2.0 0.0 13 KB

Introductory/review programming assignment (1 of 3) in the C language for a course in operating systems.

CMake 1.91% C 98.09%

msl-clang-001's Introduction

Binary Tree - Operating Systems Assignment 1

Usage

Find the line of code #define INPUT_INDEX "01" and change the 01 to match the input file. The input file should be named input01.txt and the program will create output01.txt where 01 is any 2 digit ID you choose.


The input file should contain a list of words on one single line like this:

the quick red fox jumps over the lazy brown dog

The program will load in the file, word by word, and create a binary tree out of the data. The tree is composed of nodes that contain a string of the word, a count of how many times that word appeared in the file, and pointers to the left and right nodes of the tree. It will then iterate through the tree and print the words in alphabetical order as follows:

brown: 1
dog: 1
fox: 1
jumps: 1
lazy: 1
over: 1
quick: 1
red: 1
the: 2

msl-clang-001's People

Contributors

ivogeorg avatar

Watchers

James Cloos avatar R. Carlos Luna 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.