Skip to main content

Posts

50 shades of "WHITE"

Similarities Spotted? Everyone requires beautiful, FAIR/VERY FAIR bride. How about marrying a well decorated Tube Light, very convenient idea..Right?! I had never been "fair" and hence was always teased for NOT being "One of Them" both in school and locality. I started building complex and was ashamed of myself. I was so desperate that I was ready to take up anything to be fair, so that people won't shove my off, so that I would become "One of Them". Ranging from home remedies to all possible cosmetics, from parlor to fairness creams, I literally followed all possible  QUICK FAIRNESS TRICKS  and end up looking like Dissembler. As years passed, I realized looks,complexion and external beauty are the phenomena that are vital exclusively air-headed people. They are those breed of illogistic human being who completely soaks themselves in powders, foundations, correction pens and every other such cosmetics; Photoshop their

BEING (UN)SUCCESSFUL

All of us have got this post-result declaration trauma of being "useless", "hopeless", "unsuccessful"...and so on. Even the toppers of the class, who secured 99.99% in his finals would be called the same by the person of his concern for NOT scoring that remaining 0.01%..SERIOUSLY?! While I was thinking about  Being Unsuccessful , I thought of consulting few of the best advisers around me (of-course my family and close friends) and asked them to tell me how to be successful. I got some interesting (and obvious) replies like study hard, score more, get a good job, earn in six digit (as if I am going to hire myself in my own company and decide my salary..if so, then whats the problem in earning in seven digits). I wasn't quiet impressed so i randomly started asking people around me. My maid said-"getting my children to school is success for me", my next door neighbor's son who is 5years old replied-"reciting A-Z without any mista

PUBLIC KEY INFRASTRUCTURE

PUBLIC KEY INFRASTRUCTURE A public key infrastructure (PKI) supports the ·        Distribution and identification of public encryption keys ·        Enables users and computers to exchange data over networks   ·        Verify the identity of the other party ·        Enables people and businesses to utilize a number of secure Internet applications. For example, secure and legally binding emails and Internet based transactions, and services delivery can all be achieved through the use of PKI Key Elements of PKI:- A trusted party( certificate authority (CA) )- act as a root of trust and provides services that authenticate the identity of individuals, computers and other entities A registration authority (subordinate CA)- certified by a root CA to issue certificates for specific uses permitted by the root A certificate database- stores certificate requests and issues certificates A certificate store- resid

ARRAY vs ARRAYLIST

ARRAY vs ARRAYLIST Array is an object used to save similar data type elements and its size is limited . Array is static in nature. Once created we cannot change size of array. ·        Random access, linear data structure ·        Fixed size once created ·        Can contain objects and primitives ·        Must declare element type ·        It is not a class ·        Elements accessible with index number Eg: int[] ar=new int[3]; //stores complete integer types Arraylist is a part of Collection Framework of util package to store different data type objects and it is growable . Arraylist is dynamic in nature. It can be re-size itself when needed depending upon capacity and load factor. ·        Random access, linear data structure ·        Dynamic size, grows automatically ·        Can only contain objects ·        Element type   is OBJECT ·        It is a class with many methods ·        Accessing methods like get() etc are ava

DYNAMIC PROGRAMMING

Dynamic programming  (referred to as  DP  ) is a very powerful technique to solve a particular class of problems. It demands elegant formulation of the approach and simple thinking. The idea is very simple, If you have solved a problem with the given input, then save the result for future reference, so as to avoid solving the same problem again. If the given problem can be broken up into smaller sub-problems and these smaller sub-problems are in turn divided into smaller ones, and in this process, if you observe some over-lapping sub-problems, then its a big hint for DP. Also, the optimal solutions to the sub-problems contribute to the optimal solution of the given problem. There are two ways of doing this. 1.) Top-Down :  Start solving the given problem by breaking it down. If you see that the problem has been solved already, then just return the saved answer. If it has not been solved, solve it and save the answer. This is usually easy to think of and very intuitive. This is

Questions based on dynamic programming

Q.1 The owner of a chain of four grocery stores has purchased six crates of fresh strawberries.The estimated probability distribution of potential sales of the strawberries before spoilage differ among the four stores.The following table gives the estimated total expected profit at each store, when it is allocated various numbers of crates:                                                                     Store                                                                  1          2          3            4                                               ______________________________________                                       0                         0          0          0            0                                       1                         4          2          6            2 Number                                       2                         6          4          8            3 of                                       3