Priority queue

A priority queue is a collection of elements such that each element has been assigned a priority and the order in which elements are deleted and processed comes from the following rules:

  • An element of higher priority is processed before any element of lower priority.
  • If two elements has same priority then they are processed according to the order in which they were added to the queue.

The best application of priority queue is observed in CPU scheduling.

  • The jobs which have higher priority are processed first.
  • If the priority of two jobs is same this jobs are processed according to their
    position in queue.
  • A short job is given higher priority over the longer one.

Continue reading “Priority queue”

Bsc CSIT C programming Course Material

So I’ve made some lecture slides and programs and made it all publicly available and kept in github  The syllabus is written on markdown file so any one can copy the raw version of it.
Anyone can contribute to this project. All the students can get rich course material in this repository.

Course Synopsis: This course contains the concepts of programming methodology using C. Goal: This course is designed to familiarize students to the techniques of programming in C.

Continue reading “Bsc CSIT C programming Course Material”

Statistics Crash Course using R studio

Just found some nice and easy three day crash course which will be an easy task to pick up Statistics with the help of some programming too using useful statistical tool called R. Rstudio being an IDE which has fine UI and easy utility.

STATISTICS CRASH COURSE DAY 1