Hewlett-Packard Co., the world's largest computer maker, agreed to buy Autonomy Corp. for $10.3 billion in cash to increase sales of cloud services for businesses while lessening its reliance on personal computers.
{}