Posts

Showing posts with the label Article's

Applications of a Queue in Daily life

Image
Definition of Queue A Queue is "an abstract data type in which elements are added to the rear and removed from the front; a 'first in, first out' (FIFO) structure."  ( C++ Plus Data Structures , page 226) The main difference between a queue and a stack is that elements in a queue are put on the bottom and taken off the top (remember, in a stack, elements put on the top and taken off the top). For an everyday queue example, consider a line of customers at a bank waiting to be served. Each new customer gets in line at the rear. When the teller is ready to help a new customer, the customer at the front of the line is served. This is a queue--the first customer in line is the first one served. 1.1 Applications of a Queue In general, queues are often used as "waiting lines". Here are a few examples of where queues would be used: In operating systems, for controlling access to shared system resources such as printers, files, communication lines, disks and tapes.A ...

Must Select > Copy > Paste > Compile >Run and Enjoy :) ☺

Image
Must Select > Copy > Paste > Compile >Run and Enjoy :) ☺  #include<iostream.h> #include<conio.h> #include<dos.h> void main() {int i; for(i=10;i<51;i++) {clrscr();gotoxy(20,5); textcolor(i); cout<<"|| P R O G R A M M I N G      S E E K E R Z  ||"; gotoxy(30,30);cout<<"pcphunt.blogspot.com"; gotoxy(i,15); cout<<"\2"; gotoxy(i,16); cout<<"()"; gotoxy(i,17); cout<<"_/|_ "; delay(190); clrscr(); gotoxy(20,5); cout<<"||  P R O G R A M M I N G    S E E K E R Z  ||"; gotoxy(30,30); cout<<"pcphunt.blogspot.com"; gotoxy(i,15); cout<<" \1"; gotoxy(i,16); cout<<" ))"; gotoxy(i,17); cout<<"_|\\_ "; delay(190); }gotoxy(35,16); cout<<"Let's ROcK!!"; gotoxy(30,25); cout<<"Keep Coding ..Be Seekerz \2 :)\n\n\t\t\t`~~ Hafiz Usman ~~"; getch(); }

Recursion

Image
Recursion is the process a procedure goes through when one of the steps of the procedure involves invoking the procedure itself. A procedure that goes through recursion is said to be 'recursive'. To understand recursion, one must recognize the distinction between a procedure and the running of a procedure. A procedure is a set of steps based on a set of rules. The running of a procedure involves actually following the rules and performing the steps. An analogy: a procedure is like a written recipe; running a procedure is like actually preparing the meal. Recursion is related to, but not the same as, a reference within the specification of a procedure to the execution of some other procedure. For instance, a recipe might refer to cooking vegetables, which is another procedure that in turn requires heating water, and so forth. However, a recursive procedure is where (at least) one of its steps calls for a new instance of the very same procedure, like a sourdough recipe calling f...

ARPANET

Image
Short for  Advanced Research Projects Agency Network ,  ARPANET  or  ARPAnet  began development in 1966 by the United States ARPA. ARPANET was a Wide Area Network linking many Universities and research centers, was first to use packet switching, and was the beginning of what we consider the Internet today. Some of the reasons for creating ARPANET include making it easier for people to access computers, to improve computer equipment, and to have a more effective communication method for the military. ARPANET first came into existence when the first two nodes were established between UCLA and Stanford Research Institute (SRI) in 1969 followed shortly thereafter by UCSB and the University of Utah. In the picture below is an example of what ARPANET looked like in March 1977, click the image to see a larger view of the image. ARPANET completed its transition to TCP/IP on January 2, 1983, was later replaced by...

Liquid-crystal display

Image
A  liquid-crystal display  ( LCD ) is a flat panel display, electronic visual display, or video display that uses the light modulating properties of liquid crystals. Liquid crystals do not emit light directly. LCDs are available to display arbitrary images (as in a general-purpose computer display) or fixed images which can be displayed or hidden, such as preset words, digits, and 7-segment displays as in a  digital clock . They use the same basic technology, except that arbitrary images are made up of a large number of smallpixels, while other displays have larger elements. LCDs are used in a wide range of applications including computer monitors,televisions,  instrument panels ,  aircraft cockpit displays , and signage. They are common in consumer devices such as video players, gaming devices,  clocks , watches ,  calculators , and  telephones , and have replaced  cathode ray tube  (CRT) displays...

Easy Ways to Speed Up Your PC

When your PC starts its steady decline into sloth-like speeds, the first thing you’d love to do (besides beating it  Office Space -style) is head straight to the mall for a fancy new machine. But the reality is there are easy changes you can make to speed up your computer. From start up to surfing to gaming, here are five ways you can clean up an old PC to make it look young again.  Speed Up Your Start up If an entire pot of coffee can brew in the time it takes for your computer to boot, it’s time to make some changes. Most likely your computer is not slow – it’s the dozens of programs turning on during start up that are slowing it down. Download a comprehensive tool like Auto runs to easily disable certain programs during your start up. Or try Windows’ slightly less thorough, built-in utility,Ms Config. To find it, go to Search or Run under Start and type “ms config.” Under the “Start up” tab, unchecked the boxes of the programs you don’t need to run every time your...