Giter VIP home page Giter VIP logo

cse316's Introduction

CSE316

Create a markdown readme file with subheading ## Questions, amd run generate_readme.py script to automatically populate questions and snaps from pdf file of questions list.
This program internally uses grep, perl, pdftotext, pdftoimage.

$ # Dependencies (Poppler Utilities) 
$ sudo apt install poppler-utils # For Unix bases systems
$ # For Windows download binaries from http://blog.alivate.com.au/poppler-windows/

$ # Usage
$ pip install PyPDF2 pillow pdf2image
$ python generate_readme.py -h

$ # Examples
$ python generate_readme.py ./ListOfQuestions_K17BN.pdf ./README.md -y 2017 -s BN -r 10

$ # Tests
$ chmod +x test.sh && test.sh

$ # Compile
$ make all

Questions

Question Page Snapshots
Ques 1 Image Ques 2 Image
Ques. 1. Design a scheduler with multilevel queue having two queues which will schedule the
\n
processes on the basis of pre-emptive shortest remaining processing time first algorithm (SROT)

followed by a scheduling in which each process will get 2 units of time to execute. Also note that

queue 1 has higher priority than queue 2. Consider the following set of processes (for

reference)with their arrival times and the CPU burst times in milliseconds.

-------------------------------------

Process Arrival-Time Burst-Time

-------------------------------------

P1         0  5

P2         1  3

P3         2  3

P4         4  1

-------------------------------------

Calculate the average turnaround time and average waiting time for each process. The input for

number of processes and their arrival time, burst time should be given by the user.


---
Ques. 2. Consider the following four processes, with the length of the CPU burst given in
\nmilliseconds

Write a C program to calculate average waiting time using shortest-remaining-time-first
scheduling.

Known Bugs

  • Registration Number 68 is showing wrong question number. Dude to Form Feed (FF) line ending due to separation of pages and tables to next page.
  • Question number 11, 12, 13, 14, 15 , 16, 17 images aren't generating. grep isn't able to recognize question number as the the Line Feed (LL) line ending character is coming after the first digit of the above specified range.
  • Inefficient implementation on piping pdftotext output to perl process. Possible soultion: save the converted file other than buffer.
  • Text file is generating twice implying bad design. Possible solution: unify txt generation from PyPDF2 and pdftotext.
  • Pending method to save snapshots of question pages.

cse316's People

Contributors

pandevim avatar

Watchers

 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.