Saturday, 9 March 2013

शिव तांडव स्तोत्रम् (Shiv Tandav Stotra )

 

                         OM NAMH SHIVAYLord Shiva at Haridwar

shiva_tandav_strora

shiva_tandav_strora_02

 

HAPPY MAHASHIVRATRI TO ALL OF YOU…..:-)

Friday, 8 March 2013

Data Mining Tasks:Clustering

 

This one is for those friends who love to play with ‘DATA’. And frankly speaking playing with data is not a easy job as DATA is the at the beginning of the journey which ends at ‘Knowledge’.But a lot of efforts is required to discover the knowledge out of data.That’s what data mining tasks are all about.Lets discuss one important data mining task i.e. clustering here.

Definitions:

  • the process of organizing objects into groups whose members are similar in one way or the other.
  • A form of unsupervised learning, where we dont have examples demonstrating how the data should be grouped together.
  • A method of data exploration i.e. a way of looking for patterns in data ,that are of interest.

so, a cluster is a collection of data objects which are similar among them but dissimilar to data objects belonging to other clusters.

Goal :

the goal of clustering is to determine the intrinsic grouping in a set of data.

Types:

  •  Partitioning
  • Hierarchical  

We will discuss hierarchical clustering technique in detail.    

Hierarchical clustering is further divided into two groups.They are:

  • Agglomerative
  • Divisive

In agglomerative hierarchical clustering ,following sequence of steps are followed.

  • We start with every data item in a separate cluster.
  • then we keep merging the most similar pair of clusters until we have one big   cluster left.

This is the bottom-up approach.

Good bye friends….

Thursday, 7 March 2013

LITERATURE:The Mirror of Society

 

Literature is the powerful expression of human conscience .while it can strike at the ugliness of society ,at the same time it also contains the nice philosophy life.Literature is like whole sea in a pot.The appeal of literature is widest possible and longest lasting.It is wit of one man and wisdom of millions.This is nothing but the miracle of literature that few sentences spoken or written makes a person popular and immortal.

But what is the foundation of literary creations???….It is sincerity of Imagination.Our personality can only be enriched by imaginative contact  with other times,other places and people.It teaches us the religion of humanity.It is  an instrument of the progressive refinement and enrichment of life.It is literature which is responsible for the development of mankind from barbarism to civilization.we can not imagine a world without literature.Humanity will die,if literature dies.

So my dear friends,in this era of technology be in touch with literature to keep your emotions alive,to keep you on the track of progress and to keep your humanity alive.

Good bye friends…will meet again soon:-)

   

Wednesday, 6 March 2013

Implementation of DFA in C language


#include<stdio.h>
#include<conio.h>
#include<string.h>
int ninputs;
int next1(int);
int next2(char);
void define_DFA();
void stringvalidation();
int trans[20][20];
char c[20],string[20];
int nstates,nfinals,n;
int final[20],state[20],final_state=0;
int present_state,initial_state,next_state;
int main()
{
    int choice;
    define_DFA();
    do{
             stringvalidation();
             printf("Continue(1/2)?");
             scanf("%d",&choice);
    }while(choice==1);
}
void define_DFA()
{
    int i,j;
    printf("number of inputs:");
    scanf("%d",&ninputs);
    printf("\n enter input symbols \t");
    for(i=0; i<ninputs; i++)
    {
      printf("\n\n %d input\t", i+1);
      printf("%c",c[i]=getch());
    }
    printf("\n\n number of states in DFA\t:");
    scanf("%d",&nstates);
    for(i=0;i<nstates;i++)
    {
       printf("\n\n state %d:q",i+1);
       scanf("%d",&state[i]);
    }
    printf("\n\n initial_state  : q");
    scanf("%d",&initial_state);
    printf("number of final states:");
    scanf("%d",&nfinals);
    for(i=0;i<nfinals;i++)
    {
       printf("\n\nFinal state %d : q",i+1);
       scanf("%d",&final[i]);
    }
    printf("\n\n  transition rule is (present state, input symbol ) = next state\n");
    for(i=0; i<nstates; i++)
     {
              for(j=0; j<ninputs; j++)
              {
                       printf("\n(q%d , %c ) = q",i,c[j]);
                       scanf("%d",&trans[i][j]);
              }
     }
}
void stringvalidation()
{
   int i=0,j,states,inputs;
   present_state=initial_state;
   char *str;
   printf("\n\nEnter Input String.. ");
   fflush(stdin);
   gets(string);
   str=string;
   while(*str!='\0')
   {
     states=next1(present_state);
     inputs=next2(*str);
     next_state=trans[states][inputs];
     present_state=next_state;
     for(j=0 ;j<nfinals ;j++)
      {
       if(final[j] == present_state)
         final_state=1;
       else
         final_state=0;
      }
     str++;
    }
   if(final_state==1)
      printf("\n string accepted");
   else
     printf("string rejected");
  getch();
}
int next1(int d)
{
     int i;
    for(i=0;i<nstates;i++)
    {
      if(d==state[i])
                     return i;
    }
    return -1;
}
int next2(char b)
{
    int j;
    for(j=0;j<ninputs;j++)
    {
      if(b==c[j])
       return j;
    }
    return -1;
 }

From INTERACTION to INTEGRITY


"Mitaa de apni hasti ko agar kuch martaba chaaho, Ki daana khaak mein mil kar gul-e-gulzaar hota hai"..........!!!
      To achieve any thing great requires true dedication and honest efforts.and to bring a change needs firm determination.You guys must be thinking what the hell i m talking about.....!!..Today,when every 3rd person has started blogging,what interesting i have to share with you.Well,i am here to interact,talk ,and discuss about my ideas,my thaughts about science,technology,economics,commerce,politics ,literature with you,my friend.I said discuss.I am here not for one-way communication,but for a open-minded two-way communication.
             In the begining,I talked about change.Weather it be technology,policy,attitude,thinking,economy,Change should always be for a brighter and better future.I want  change for good ,both in me and you.This can happen only by interaction. Finally this interaction will lead us towards integrity.And finally this integration will lead India on the pinnacle of success and glory.At last i wanna share a famous quote ,which each of us must follow.....

"Khudi ko kar buland itna ke har taqdir se pehle Khuda bande se ye pooche bata teri raza kya hai"

Good bye friends.....will meet again soon:-)