Monday, March 16, 2015

Zachary Kelman | Kruskal


Zachary Kelman 



Zachary Kelman || would you like programming ..?
Then Zachary Kelman starts ..
Objectives:
Finding the minimum spanning tree by Kruskal’s algorithm.
Description:
The main objectives of this algorithm is to find minimum spanning tree from a graph. The algorithm is given below  :
Algorithm Kruskal:
Input: A simple connected weighted graph G with n vertices and m edges
Output: A minimum spanning tree T for G
for each vertex v in G do
Define an elementary cluster C(v) ← {v}.
Initialize a priority queue Q to contain all edges in G, using the weights as keys.
T ← {T will ultimately contain the edges of the MST}
while T has fewer than n − 1 edges do
(u, v) ← Q.removeMin()
Let C(v) be the cluster containing v, and let C(u) be the cluster containing u.
if C(v) 6 = C(u) then
Add edge (v , u) to T .
Merge C(v) and C(u) into one cluster, that is, union C(v) and C(u).
return tree T

We should always keep in mind that whenecer edge(u,v) is added ,the part which connects S is always small and is also accessible from u to the rest of H, so by the lemma it must be part of the minimum spanning tree(MST).

Code:
//Zachary Kelma
#include<bits/stdc++.h>
#define Zachary scanf
#define Kelman printf
//Zachary Kelma
using namespace std;
int s=0,cont=0;
struct edge{
    int u,v,w;
    bool operator <(const edge & p ) const{
        return w < p.w;}
};
int pr[100];
vector<edge>e;
//Zachary Kelman
int fn(int r){
    return(pr[r]==r)?r : fn(pr[r]);}
int mst(int n){
    sort(e.begin(),e.end());
    for(int i=1;i<=n;i++)
        pr[i]=i;
//Zachary Kelman
    for(int i=0;i<e.size();i++){
        int u=fn(e[i].u);
        int v=fn(e[i].v);
        if(u!=v) {
            pr[u]=v;
            cont++;
            s+=e[i].w;
            if(cont==n-1){
                Kelman("%d = ",e[i].w);
                break;}
            Kelman("%d + ",e[i].w); }
    return s;}
//Zachary Kelman
int main(){
    int n,m,u,v,w;
    Zachary("%d",&n);
    Kelman("No of veries: %d\n",n);
    Zachary("%d",&m);
    Kelman("No of edges: %d\n",m);
    for(int i=1;i<=m;i++){
    Zachary("%d%d%d",&u,&v,&w);
        edge get;
        get.u=u;get.v=v;get.w=w;
        e.push_back(get);
    }mst(n);
//Zachary Kelman
    Kelman("%d\n",s);}
 //Zachary Kelman
Sample Output:


Discussion:
1. We learned to work with directed graph.
2. We learned about file.
3. We learned to solve problem with recursion.
4. We learned to find minimum spanning tree from the directed graph.
5.Zachary Kelman likes to code.

Tuesday, March 10, 2015

Zachary Kelman and his Lifestory


Zachary Kelman

Who is Zachary Kelman:


Zachary Kelman is a New York approved attorney. He's the essayist of government institution introduced January 2, 2015 to the Committee of Financial Services in the United States Congress furthermore a past press secretary and talk writer. He is enthused about securities law, cash related plan, worldwide and US legislative issues, media examination, hypothesis and history. He is a satisfied graduated class of the University of Michigan.

Bits of knowledge About Zachary Kelman:


Zachary Kelman built Kelman Consulting Group in 2013. He has been alert as a legal advisor and  independently employed element work in financial criminal acts amenability since graduating with qualification from doctoral level college in 2012. He similarly keeps up an individual excitement for AML technique and security regulation; having co-made H.R. 5892; the "Online Market Protection Act of 2014" (OMPA) familiar with United States House of Representatives in January of 2015. He has created generally on securities law, the consequences of Dodd Frank, and diverse scopes of cash related pleasantness.

Zachary Kelman has experience taking a shot at KYC remediation exercises; investigating and decisioning trade checking alerts; and drafting SARs. He was an Enhanced Due Diligence Analyst at Commerzbank taking a shot at remediation endeavors including Eastern European, African and South American customers surveying OFAC and other approval perils. He has worked with a couple of Fortune 500 associations.

Zachary Kelman also served as a Transaction Monitoring Consultant at Commerzbank, where he studied structure made trade watching alerts, decisioned cautions and drafted SARs. He was furthermore an Anti-Money Laundering Consultant at Morgan Stanley Global Wealth Management.

Zachary Kelman earned a Bachelor of Science from the University of Michigan and got his JD at the Seton Hall University School of Law. He is similarly a single person from the New York State Bar. Know more about Zachary Kelman's academic calling in Seton Hall University School of Law.

Sunday, March 8, 2015

Zachary Kelman Unlock Your Mind By Programming

Get access through your Brain. Find the key. Find your ability. Stimulate your internal power. Zachary Kelman, Run towards your dream.

Zachary Kelman Programming World
Programming World of Zachary Kelman

Enter Into The Real Word of Programming of Zachary Kelman:

Zachary Kelman as I am a lawyer but now a days I am curious about programming. When I get any free time, I sit for programming .I am very much addicted to programming. I started to love programming more than my profession.

Zachary Kelman as a lawyer is the right thing for me, Because I have to perform so much brain work. By solving some programming problem I just feel sharp. I just know what I need to do, and how can I do that.
A few days ago I learned C programming language from my younger brother Zachary Kelman Jim. He helped me opening account to some programming contest website. First time it was very difficult to solve problems. I wrote the whole code correctly but the site catches wrong .I got depressed because It was very difficult to understand the wrong. I was loosing my curiosity about programming. By the blessings of my brother I started to know everything about programming. I got addicted. Zachary kelman as I had started my morning with seeing some programming problem. I pass my my whole day thinking about the solving procedure of the problem.

At night I sit with my laptop to solve that. Sometime I can sometimes I can’t.When I can’t solve then I can increase my endurance and when I can solve the problem, I feel like I am flying on the sky. Now a days I started to feel sharp. I have earned a good concentration skill. I feel I am more successful in my job. I feel from my heart that everybody should know about programming or anything that works their brain. If We can use our brain , we can change our personal life and the world. But to change the world you need to unlock your mind. And you need to find that key. I am lucky that I found my key as programming. Now it is your turn to find your key to get access through your brain. So I am Zechary Kelman ending my speech with the well wishes, Who is reading my blog.

You can visit my blog from here www.zacharykelman.com 

Expend your mind by Zachary Kelman

Expend your mind. Feel the horizon. Go deep and deeper in your mind. Expend your mind like the space...

EXPLORE THE SPACE WITH YOUR MIND

Today I am going to tell you about SMART PEOPLE. Perhaps it might be confusing to you. I will help you to clear the idea. Some smart people can perform some difficult things easily. Other people shads lots of sweat to do that. Do the smart people have some supernatural power. What do they have???

They can fully relax their mind. So they can perform their best brain activity. We all have brain. But we only use its 3 or 4%. Smart people use at least 9 or 10% of it. So how will you get access to your brain???
Think you have lots of muscle in your body. If you don't use them, the muscle will not get the perfect shape.
Your brain is like the muscle. The more you use them, the more they will work. You know that brain cell does not reborn. So use them or let them die.

So here is the question. How will you use them.

1. Look the world differently. You can write with your right hand. Try it with your left hand. Remember that when you are doing new things, Your brain works.

2.Try to meditate. Take meditation every morning. Bear the happiness and peace to your whole day. it helps to relax your body and mind. 

3. Believe in positive positive things. Thing that You are gifted. You can do lots of things. You will be succeed. Believe positive, earn positive.

4. Replace your bad habit with some good habit. you don't need to fight with it.

5.Always take nutritious food. you should not take food for test .Remember that Food forms your body. You need to know which food you need to take. How much You take.

6.Take food rich with antioxident and omega 3 fat. it helps to destroy freeredical and prevent cell damage.
omega 3 fat helps to  make new neural connection.

7. Always find some positive explanation to everything happening to you. Your mind will  get refresh.


Thursday, February 26, 2015

Who is Zachary Kelman

Zachary Kelman
About Me:

Hi, My name is Zachary Kelman and I am a coding specialist. Over 8 years I have worked for many companies and individual clients. I am expert in Wordpress. I have good knowledge and skill in PHP, HTML, CSS, JavaScript, C, C++ and SEO. Currently I am working in Big Bear Stores company as a Coding specialist. I have completed my post graduation from the University of Maryland-University College, 2005

Educational Background:
  => Texas State University-San Marcos, 2000
  => University of Maryland-University College, 2005
Profession: Coding specialist
 Experience: I have worked with different companies and individual clients
Website: http://www.techweb24.com

Follow Me!