google.com, pub-4617457846989927, DIRECT, f08c47fec0942fa0 Learn to enjoy every minute of your life.Only I can change my life.

Saturday, July 16, 2016

DATA STRUCTURE

DATA AND FILE STRUCTURES
DATA STRUCTURE
Data are represented by data values held temporanily within programme's data area or recorded permanently on a file . Often the different data values are related to each other.
To enable programmes to make use of these relationships, these data values must be in an organised form. The organised collection of data is called a data structure.
The programmers have to follow certain rules to access and process the structured datda . We may,therefore , say data are represented as:
Data Structure = Organised Data + Allowed Operations
There are standard data structures which are often used in their own right and can form the basis for complex data structures .
One such basic data structure called Array.
Arrays are building block for more complex data structures .Designing and using data structures is an important programming skill.

Asymptotic Notations :
Time and space complexity is measured in terms of asymptotic notations.
For example let us consider a program which stores n elements.
void store()
{
int i,n;
printf("enter the number of elements ");
scanf("d",&n);
for(i=0;i<n;i++)
{
//store the elements
}
}

In the above program space is requiredd to store the executable code and to store the 'n' number of elements .
The memory that is required to store the executable code is static .
The memory required to store the 'n' elements depends on the value of  'n'.
The time depends on the value of 'n'.
The time required to execute the code also depends on the value of ' n'.
In the above program we have two executable statements printf and scanf.
Let us assume there are x statements in the for loop.
Then the time required to execute the program will be equal to x* n + 2.
'n' is the instance characteristics .
Asymptotic notation can describe the time and space complexity accurately for large instance characteristics.
Asymptotic notation will provide us with upper and/or lower time and space bounds for a given algorithm .
However what do you mean by upper and lower bounds?
--Upper bound will give the maximum time or maximum  space required for a program.
--Lower bound will give the minimum time or minimum space required.

Big Oh notation :
Definition: f(n) =O(g(n)) (read as "f of n equals big oh of g of n") iff (if and only if ) there exists two positive constants c and n0  such that
| f(n) | <= c | g(n) | for all n>= n0.
 Big Oh notation provides an upper bound for the function f. Consider f(n) to be the computing time of some algrothim where n is the number inputs,outputs,their sum or any one of them.
When we say that an algorithm has computing time O(g(n)) we mean that if the algorithm is run on any computer on the same type of data but for increasing values of n, the resulting time will always be less than some coanstant time g(n).
Let us consider an example to understand the above concept.
(1)  Linear Functions : Consider f(n) =5n + 2 .
When n is at least 2, 5n +2 <= 5n +n <= 6n.
So f(n) = O(n) .
Thus f(n) is bounded from above by a linear function.
We can arrive to the same conclusion in other ways.
For example , 5n + 2 <= 10n for n>=0.
Therefore we can also satisfy the definition of  big oh by selecting c=10 and n0 equal to any integer greater than zero.

(2) Quadratic Functions :Suppose that f(n) = 5n2 + 4n +2 .
We see that for n>= 2 , f(n) <= 5n2 + 5n.
Now we note that for n>= 5 , 5n<=5n2.
Hence for n>=n0=5,  f(n0<= 5n2 + n2 = 11n2.
Therefore f(n) = O(n2).

Omega Notation :
Definition : f(n) = omega ( g (n) )   ( read as "f of n is equal to omega of g of n )  iff positive constants c and n0 exists such that f(n) >= g n0 for all n ,n>=n0.
Omega notation provides the lower bound for function f.
f(n) = omega (g(n)) means f is at least c times the function g except when n is the smallest than n0.
For example suppose we have a linear function f(n) = 3n + 2 .
Now 3n consider a quadratic function f(n) =5n2 + 2n +2 then 5n2 + 2n + 2> 5n2 for n>=0 ,hence we can say f(n0) = omega (n2).


Theta Notation:
Definition : f(n0) = theta ( g (n) )   ( read as "f of n is equal to theta of g of n )
-  iff positive constants c1 and c2 and (n0) exists such that c1 g(n) <= f(n) <= c2 g (n) for all n ,n>=n0.
f(n) = theta (g(n)) means f lies between c1 times the function g and c2 times the function g except possibly when n is the smallest than (n0).
Here c1 and c2 are positive constants.
Thus g is both a lower and upper bound for a constants factor c on the value of f for all suitably large n.


Thursday, July 7, 2016

Jokes

iDriving down a road Santa sees a sign that says, “Watch for Fallen Rocks.”

A few kilometres later, he sees some rocks at the side of the road, so he stops and picks them up.

When he gets to the next town, he carries the rocks into the Highway Maintenance office and puts them on the counter.

“Here are your fallen rocks,” he says to the man behind the counter. “Now where is my watch?”.

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

WIFE: "There's trouble with the car. It has water in the carburetor."

HUSBAND: "Water in the carburetor? That's ridiculous."

WIFE: "I tell you the car has water in the carburetor."

HUSBAND: "You don't even know what a carburetor is. I'll check it out. Where's the car?"

WIFE: "In the pool."

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Dear Customer,
Your Ac XXXXXXXX03036 is credited with INR15,00,000.00 on
7 th june 2016. Info RTGS-141210633491-BLACKMONEY DISTRIBUTION By BJP. Your Net Available Balance is INR15,60,542.00

Sala Kab Ayega Aisa SMS.....😜😜😜😜

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Father- agar tum fail hue to 
mujhe daddy mat kehna… result aane par.. 
Father- Kya hua result ka ? 
Son- Sorry yaar aatma ram tune baap kehlane ka haq kho diya...!!!

 😂😂😂😂😂

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

TEACHER:- Kabir ka koi doha sunao..? 
STUDENT:- Ganga ji ke ghat pe ghatna ghati gambheer, Raheem le gayo Meera ki Pappi fans gaye sant Kabeer
😀😀😀😀😀
 
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Height of Coolness- 
2 frnds, after exam: 
1- Koun sa paper tha? 
2- Shayad Maths 
1- Yani tune paper padha 
2- Na yaar, wo aage wali Ladki CALCULATOR liye baithi thi.

😂😂

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
An American walks into a Swiss bank with a giant, heavy sack in each of his hands. He goes to the teller, brings his face close to the glass and whispers, “I have two million dollars with me. I urgently need to open a secret Swiss bank account!” The Swiss bank teller replies in a normal volume, “Sir, there’s no need to whisper. Poverty is nothing to be ashamed of in Switzerland.”

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
पापा – “Whats your Result ?”

बेटा – “पापा में 5 विषयों में फेल हो गया”

पापा – “Don’t call me Papa”

बेटा – “Oh!!! Come on Papa, ये मेरा School Test Result है, Not a DNA Test Result”

कास कोई Exam Result का Insurance करवा देता,
तो हर Exam के पहले Premium भरवा देते,
पास होते तो ठीक है,
वरना Insurance Claim करवा लेते…
जो Student पास हो जाये उन्हें CONGRATULATION,
और
जो Student फेल हो जाये उन्हें तो Double CONGRATULATION,
Becoz…
.
.
अब उनकी Class में नई-नई लड़कियाँ होगी ।
Moral : Fail होने पर कोई नुकसान नहीं होता ।

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Pichhle pradhanmantri SILENT MODE par rahte the ….

Ye wale FLIGHT MODE par rahte hain !!!

—————-

Biwi bachhe na ho to
aadmi ka ghar mein rahne ka mann hi nahi karta…

Breaking News : Modi ji fir se 5 desho ki videsh yatra pe rawana !!!

—————–

Samasya ye nahi hai ki KALA DHAN Bharat waapas kaise laaya jaaye ???

Ab samasya ye hai ki MODI JI ko Bharat waapas kaise laaya jaaye .. !!!

——————

Modi Ji China gaye hain isse mai bahut excited huun !!!

Maine twitter par message karke Diwali ke liye jhalar laane ko keh diya hai …. !!!

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Kisi ko pata ho to plz batao mujhe,

Mujhe aaj tak samjh nahi aaya ki…

Modi ji election jeete the
ya …
World tour ka package!!

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Hamari To Dua Hai Ye Koi Gila Nahi,
Wo Phool Jo Aaj Tak Yaha Khila Nahi,
Khuda Kare Aapko Wo Sab Kuchh Mile,
Jo Aaj Tak Kisi Ko Kabhi Mila Nahi. 

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Santa ne exam sheet par SUSU karke teacher ke hath me thama di.
..
Teacher-GADHE ye kya kia.!!!
..
..
Santa.-Sir, apne hi kaha tha pahle jo aa rha he wahi krdo…

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Teacher: Beta batao Parle G kepacket pe jo Green dot banahai uska matlab kya hai?
.
.
.
.
.
.
.
.
Baccha-‘mam iska matlab Parle G online baithe hain..

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Solve if u can…

It is a 9 letter word 123456789,
If you lose it u die,
If u have 234, you can 1234,
56 is one type of disease,
89 indicates exact location and time,
2 and 7 r same letter, 3 and 8 are same letter, 5 and 9 are same letter.
Guess the word????

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Agar Mausam Accha ho to Mausam ka Maza uthati Ladkiya.
Agar Thand ho to Thand mein thiturati Ladkiya.
Garmi ho to Dhoop mein Tapti Ladkiya.

Agar Barish ho to barish mein nahati Ladkiya.
Agar Exam ho to Exam mein bethi Ladkiya.
Agar Traffic ho to Traffic mein Fansi Ladkiya.
Sala Akhbar walo ko hum Ladke najar kyo nahi aate

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Chaand bhi kya ajeeb chij hai!!
.
Jaalim…
.
.
Bachpan mein “Maamu” Aur Jawani mein “Jaanu” nazar aata hai..

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
?BOSS in office : Okay guys, today we are going to play a game…..

When I say a name of the fruit, you run to the right side of the hall….

And when I say any color, you run to the left side of the hall….

One who runs on wrong side will not get the increment…
got it ?

Employees : Yes Boss, Got it.

Boss : Okay…Ready, Set…
.

.

.

“ORANGE” !

Employees : ?????

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Always remember in life that when no one is with you,
And when all the doors are closed around you
.
.
.
It means

U r in the toilet..
😂😅😆😜😝            
Don't get senti always. ..

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Different Phases of a man :

After engagement : Superman

After Marriage : Gentleman

After 10 years : Watchman
.
.
.
.
.

And
After 20 years : Doberman

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Murder of English :-Both of you stand together separately.?

I have two daughter both are girls. ?

Give me a blue pen o any color. ?

Will you hang the calendar or else I will hang myself. ?

Why are you looking at the monkeys outside when I am inside ? ?

Pick up the paper and fall in the dustbin. ?

All of you Stand in Straight circle. ?

? ? ?

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Father : Son, once there was a time when I took Rs. 10 with me and bought grocery, vegetables, and milk etc..
.
.
.
.
.
Son : Papa, Now time has changed.
Today in every shop has CCTV camera..
? ? ?

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
America claimed that ?

“We have discovered Mars, Saturn, and other planets. The cost had been come Rs. 147 billions.

.

.

.

.

Now who can explain those morons that-

“In India, Brahmin changes all the planets’ directions at only Rs 101/-

? ? ?

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Pappu कुछ हिसाब लगा रहा था।
.
उसके पापा ने पूछा, ‘क्या कर रहे हो?’
.
Pappu बोला, ‘पापा, जब मैं पैदा हुआ था, आप 30 साल के थे। मुझसे तीस गुना बड़े थे।’
.
पिता ने जवाब दिया, ‘हां, बेटा।’
.
Pappu – ‘जब मैं पांच साल का हुआ तो आप 35 साल के यानी मुझसे 7 गुना बडे़।’
.
पिता : ‘बिल्कुल ठीक।’
.
Pappu – ‘जब मैं 10 साल का हुआ तो आप 40 साल के, मुझसे चार गुना बडे़।’
:
पिता: ‘हां।’
:
Pappu – ‘अब मैं 15 साल का हूं तो आप 45 साल के, मुझसे तीन गुना बडे़।’
:
पिता: ‘हाँ हाँ शाबाश बेटा’
:
Pappu – ‘तो मैं हिसाब लगा रहा था कि………….
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:

:
:
:
:
:
जैसे जैसे मेरी उम्र बढ़ रही है आप की कम हो रही है
:
इस हिसाब से मैं कितने साल में आपसे बड़ा हो जाऊंगा।

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Modi Sarkar ka 1 naya kanoon,
Sundar ladkiyan aur Handsome Ladko par
Personality tax lagega…

Ab haso mat…
Muje pata hai,
Aap to bach gaye…
Par meri to waat lag gayi n…

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Teacher: Bacho 2 October ke din kya hua tha?

.

.

Student: Ajay Devgan apni family ko lekar
satsang ke liye panjhi gaya tha,
aur 3 oct ko vapas lauta tha..!! 

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
😳😳Wife ने एक बोर्ड देखा:
बनारसी साड़ी 10/-
नायलॉन 8/-
कॉटन 5/-
Wife खुश हो के अपने हस्बैंड से :: मुझे Rs..500 दो, में 50 साड़ी खरीदुंगी.
.
.
Husband: अरी ओ बीरबल की माँ, press करने वाले  की दुकान है वो .😂😂😂

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Solutions to help beat the heat and make your surroundings cooler:

 Here are some solutions to help beat the heat and make your surroundings cooler: Natural Solutions 1. *Plant trees and greenery*: Trees and...