कोई दीवाना कहता है कोई पागल समझता है
मगर धरती की बैचेनी को बस बादल समझता है।
मैं तुझसे दूर कैसा हूँ, तू मुझसे दूर कैसी है
ये तेरा दील समझता है या मेरा दील समझता है।
मुहब्बत एक अहसासों की पावन सी कहानी है
कभी कबीरा दीवाना था, कभी मीरा दीवानी है।
यहाँ सब लोग कहते हैं, मेरी आंखों में आँसू हैं
जो तू समझे तो मोती है , जो ना समझे तो पानी है।
समंदर पीर का अम्बर है लेकीन रो नहीं सकता
ये आंसू प्यार का मोती है इसको खो नहीं सकता
मेरी चाहत को दुल्हन तू बना लेना मगर सुनले
जो मेरा हो नहीं पाया वो तेरा हो नहीं सकता
भ्रवर कोई कुमद्दीनी पर मचल बैठा तो हंगामा
हमारे दील में कोई खवाब पल बैठा तो हंगामा
अभी तक डूब कर सुनते थे सब कीस्सा मोहब्बत का
मै कीस्से को हकीक़त में बदल बैठा तो हंगामा
जींदगी की असली उड़ान अभी बाकी है
हमारे इरादों का इम्तीहान अभी बाकी है।
अभी तो नापी है सीर्फ मुट्ठी भर ज़मीन
आगे सारा आसमान अभी बाकी है ॥...
लहरों से डर कर नौका पार नहीं होती,
Monday, April 18, 2011
Friday, February 25, 2011
MERI ANKHON MEIN
Mere Bistar Pe So Raha Hai Koi
Meri Ankhon Mein Jaagta Hai Koi
Meri Ankhon Mein Jaagta Hai Koi
In Pahado Mein Rehte Hain Humzaad
Bol Kar Dekh Bolta Hai Koi
Bol Kar Dekh Bolta Hai Koi
Aaj Main Jagoonga Ki Sote Hue
Meri Palko Ko Choomta Hai Koi
Meri Palko Ko Choomta Hai Koi
Mera Shaitan Mar Gaya Shayad
Mere Seene Pe So Raha Hai Koi
Mere Seene Pe So Raha Hai Koi
Rang Ye Bhi Bahut Purana Hai
Sochta Koi, Bolta Hai Koi
Sochta Koi, Bolta Hai Koi
Saath Pardon Mein Chup Ke Dekh Liya
Kapde Badlo To Dekhta Hai Koi
Kapde Badlo To Dekhta Hai Koi
ITNI SIYAH RAAT
Taaro Ki Chilmano Se Koi Jhankta Bhi Ho
Is Kaynaat Mein Koi Manzar Naya Bhi Ho
Itni Siyah Raat Mein Kisko Sadayein Doon
Aisa Chirag De Jo Kabhi Bolta Bhi Ho
Rango Ki Kya Bahar Hai Pathar Ke Baag Mein
Lekin Meri Jameen Ka Ik Hissa Hara Bhi Ho
Uske Liye To Maine Yahan Tak Duayein Ki
Meri Tarah Se Koi Use Chahta Bhi Ho
Is Kaynaat Mein Koi Manzar Naya Bhi Ho
Itni Siyah Raat Mein Kisko Sadayein Doon
Aisa Chirag De Jo Kabhi Bolta Bhi Ho
Rango Ki Kya Bahar Hai Pathar Ke Baag Mein
Lekin Meri Jameen Ka Ik Hissa Hara Bhi Ho
Uske Liye To Maine Yahan Tak Duayein Ki
Meri Tarah Se Koi Use Chahta Bhi Ho
Saturday, January 1, 2011
Every moment is precious
to realize the value of
One year : Ask a student who has failed in his exam.
One month : Ask a mother who has given birth a
premature baby.
One week : Ask an editor of weekly periodical.
One day : Ask daily wage labour.
One hour : Ask the lovers who waiting to meet one another.
One minute : Ask the person who missed the flight / train / bus.
One second : Ask – some one who survived and
accident.
One mili second : Ask the sprinter who missed the gold medal in Olympics.
so, Tresure every moment you have !
Yesterday is History.
Tomorrow is mystery.
But Today is a gift.
So we all it “PRESENT.”
Wednesday, December 29, 2010
the different types of hazards
There are three types of hazards.
[1] Structural hazards
[2] Data hazards
[3] Control hazards
[1] STRUCTURAL HAZARDS
When a machine is pipelined the overlapped execution of instructions requires pipelining of functional units and duplication of resources to allow all possible combinations of instructions in the pipeline. If some combinations of instructions cannot be accommodated because of resource conflicts, the machine is said to have a structural hazard. The most common instances of structural hazards a lies when some functional units is not fully pipelined Then a sequence of instructions using that not pipelined unit cannot proceed at the rate of one per clock cycle. Another common way that structural hazards appear is when some resource has not been duplicated enough to allow all combinations of instructions in the pipeline to execute.
For Example
A machine may have only one register. File write part but under certain circumstances the pipeline might want to perform two writes in a clock cycle.
[2] DATA HAZARDS
A major effect of pipelining is to change the relative timing of instructions by overlapping their execution. This introduces data and control hazards. Data hazards occur when the pipeline changes the order or read/ write accesses to operands. So, that the order differs from the order seen by sequentially executing instructions on not pipelined machine.
[3] CONTROL HAZARDS
Control hazards can cause a greater performance loss than the data hazards when a branch is executed. It may or may not change the PC to something other than its current value recall that if a branch changes the PC to its forget address, it is a taken branch, if it falls through. It is not taken branch then the PC is normally not until the end of MEM, after the completion of the address calculation and comparison.
The simplest method of dealing with branches is to stall the pipeline as soon as we detect the branch until we reach the MEM stage, which determines the new PC of course. We do not want to saw the pipeline until we know that the instruction is a branch.
What is Pipelining? Explain the principles of pipelining
Pipelining is an implementation technique where by multiple instructions are overlapped in execution. Today pipeline is the key implementation technique used to make fast scopes.
PRINCIPLES OF PIPLINING
Assembly lines have been widely used in automated industrial plenty in order to increase productivity their original form is a flow line of assembly stations where items are assembled continuously from separate parts along a moving conveyor belt. Ideally all the assembly stations should have equaled processing speed otherwise the slowest station becomes the bottleneck of the entire pipe. This bottleneck problem plus the congestion caused by improper buffering may result in many idle stations waiting for new parts. The a proper sequence of subtasks becomes a crucial factor in determining the performance of the pipeline.
The precedence relation of a set of subtasks [ T1, T2, … TK] for a given task T implies that some task Tj cannot start until some earlier task Ti [Kj] finishes the inter dependencies of all substasks form the precedence graph with a line precedence relation. Task Tj cannot start until all easies subtasks {Ti, for all K=J} finish a liner pipeline can process a succession of subtasks with a inter precedence graph. The stages are pure combinational circuits performing arithmetic or logic operations over the data stream flowing through the pipe. The stages are separated high-speed interface latches separate the stages. The latches are fast registers for holding the intermediate results between the stages.
Addressing Modes
(A) REGISTER MODE
The operand is the contents of a processor register the name (address) of the register is given in the instruction processor register are used as temporally storage locations. Where the data in a register are accessed using the register mode.
(B) ABSOLUTE MODE
The operand is in a memory location the address of this location is given explicitly in the instruction. The absolute mode can represent global variables in program a declaration such as integer A.B; in a high level language program will cause the complier to allocate a memory location to each of the variables A and B.
(C) IMMEDIATE MODE
The operand is given explicitly in the instruction address and data constants can be represented in assembly language using the immediate mode.
For example
The instruction move 200 immediate, replaces the value 200 in register or clearly the immediate mode is only used to specify the value of a source operand.
Using a subscript to denote the immediate mode is not appropriate in assembly languages. A common collection is to use the sharp Sign (#) in front of the value to indicate that this value is to be used as an immediate operand.
(D) INDIRECT MODE
The effective address of the opened is the contents of register or memory location whose address appears in the instruction we denote indirection by pacing the name of the register or the memory address.
the function of functional units of computer
Following figure shows the functional units of a computer it consists of five main parts.
(1) INPUT UNIT
(2) OUTPUT UNIT
(3) MEMORY
(4) ARITHMETIC AND LOGIC UNIT
(5) CONTROL UNIT
The input unit accepts the coded information from the keyboard of a video terminal or from other computer over digital communication line. ALU and control unit together called as CPU or simply a processor.
(1) INPUT UNIT
Computer accepts the coded information through the input unit. It has the capability or reading the instructions and data to be processed the most commonly used input devices are keyboard of a video terminal. This is electronically connected to the processing part of a computer. The keyboard is wired such that whenever a key is pressed the corresponding letter or digit is automatically translated into its corresponding code and is directly sent either to memory the processor.
(2) OUTPUT UNIT
Output unit displays the processed result. Examples are video terminals and graphic displays. Input and output unit is usually combined under the term I/O unit for example considers the keyboard of a video terminal. This consists of keyboard for input and a cathode ray tube display for output. I/O devices do not alter the information. Content or meaning of the data some devices can be used as output only.
(3) MEMORY UNIT
Memory unit is an integral part of a computer system. Main function of a memory unit is to store the information needed by the system. Typically it stores programs and data. The system performance is largely dependent on the organization. Storage capacity and speed of operation of the memory system can be broadly classified into four groups.
I. Internal memory
II. Primary memory
III. Secondary memory
IV. Cache memory
(4) ARITHMETIC AND LOGIC UNIT
The arithmetic and logic unit is the ‘CORE’ of any processor its unit that performs the calculations. A typical ALU will have two inputs ports and a result port. It will also have a control input telling it which operation to perform and additional outputs for condition codes.
Arithmetic unit
The arithmetic unit performs typical arithmetic operations such as addition subtraction. Increment and decrement usually by unity. This unit includes the necessary hardware required for operation on signed and unsigned integers. Floating point numbers and BCD numbers etc. this multiplayer selects either Y OR X depending on the selection line so which is also the carry-in input of the addle.
If so = 0 output is f = x + y
If so = 1 output is f = x + y + 1 were y + 1 is 5
Hence the output is f = x – y
(Compliment of Y)
Consider a simple logic unit which can perform two logic operation AND or EX- OR here also multiplexer selects either or these operations depending on the state of so.
If so = o output G = X AND Y
If so = 1 output G = X CD Y
Some additional hardware can be added to the above basic logic unit perform the Boolean operations.
For example
X = X + 1
Y + Y + Y * Y = X OR Y
Arithmetic and logic units are combined together to form ca complete ALU. Outputs F and G are multiplexed with a nibble multiplexer to get a single output depending on the selection lines of the nibble multiplexer the selection line is sometime known as mode selection line since it selects the desired mode either arithmetic or logic.
(5) CONTROL UNIT
The purpose of control unit is to control the system operations by routing the selected data items to the selected processing hardware at the original time control unit acts as nerve centre for the other units. This unit decodes and translators each instruction and generates the necessary enable signals for ALU and other units. Control unit has two responsibilities. I.e. Instructions interpretation and instruction sequencing
The operation of the computer can be summarized as below.
v The computer accepts in formation through the input unit and transfers it to the memory.
v Information stored in the memory is fetched into arithmetic and logic unit to perform the desired operations.
v Processed information is transferred to the output unit.
v All activities inside the machine are controlled by a control unit.
Why .NET
Despite its substantial popularity, com suffers from a numbers of limitations.
In addition .com did not offer an integrated class library comparable to the .net FCL. Instead the developers of each application or operating system service were free to implement whatever object model made sense to extend their application. As a result, there are major gaps in the functionality made available through .com automation and there is not a good deal of consistency across object models.
The .NET platform and the .NET framework class library were developed in an effort to address these weaknesses of.com.
polymorphism
In computer science, polymorphism is a programming language feature that allows values of different data types to be handled using a uniform interface. The concept of parametric polymorphism applies to both data types and functions. A function that can evaluate to or be applied to values of different types is known as a polymorphic function. A data type that can appear to be of a generalized type (e.g., a list with elements of arbitrary type) is designated polymorphic data type like the generalized type from which such specializations are made.
Example of overloading
Public overloads function find data (by val, name as srn as Array list find data and return result end function
Can be overloaded as shown below
Public overloads function find data (by val age as integer)
As array list find data and return result end function
Overloading constructers:
A constructor performs various. Tasks those are not visible to you as the programmer even if you were no code for the constructer. These tasks are all associated with building a complex.
Example
Public overloads sub new ()
Initialize object here
End sub
Public overloads sub new (by Val ID as integer)
Use the ID value to initialize the object
End sub
Explain event and event handlers
If you want to handle events for multiple controls or multiple events for the same control, you request a separate notification for each control event combination you can use the source object passed to the event handler to get detail about.
Which button was clicked
ü Event driven programming
WINDOW APPLICATION
Allows you to create the windows, dialog boxes and controls in your application you draw and view controls on a form. While you are designing a form
Each form window has maximized, minimize and close button.
ü You can create either fixed or movable forms. The form you design will have the same features at designs time and as run time unless you specify otherwise in the forms properties.
ü Use the buttons in the toolbox to draw controls on the form.
ü Use the form layout window command from the view menu to preview the layout of your form on a screen.
ü The basic unit of the windows application is the form.
Artificial intelligence? Discuss briefly the history of artificial intelligence.
Artificial intelligence (AI) is the intelligence of machines and the branch of computer science that aims to create it. AI textbooks define the field as "the study and design of intelligent agents" where an intelligent agent is a system that perceives its environment and takes actions that maximize its chances of success. John McCarthy, who coined the term in 1956 in organized the workshop at Dartmouth College . Defines, it as "the science and engineering of making intelligent machines." Where researches are interested in the field of automata theory, neural nets and study of intelligence proposed and adopted the name artificial intelligence for the field.
HISTORY OF ARTIFICAL INTELLIGENCE:
v In fact it is the different disciplines like philosophy, mathematics, economics, neuroscience, psychology, computer engineering, control theory and cybernetics and linguistics have contributed ideas, viewpoints and techniques to AI.
v It is Alan Turing who first proposed theory of computation.
v He proposed for the possibility of a computational machine that could behave in a way that could be perceived as intelligent.
v He developed a simple, universal and non numeric computing model which is capable of computing any computable function.
v Alan Twing (1936) is called the father of AI.
v Some of the diverse ideas / works that gave momentum to evolution of AI are listed below.
ü Allen’s theory of computation (1936)
ü Russel and whitehead’s principia mathematic
ü Wieners book on “cybernetics” (1948)
v AI has emerged as a separate field rather than a branch of other areas like mathematics operation research or decision theory.
v AI is the only field that laid emphasis on the methodology i.e. to build machines that can work in complex changing environment in an intelligent manner.
v Since 1956 researchers, industry people and scientists are succeeding in applying as in different areas like spacecrafts. Computer vision, media diagnosis, robotics, computer games, structural engineering, chemical and geological data analysis.
Subscribe to:
Posts (Atom)
