http://www.geeksforgeeks.org/maximum-sum-such-that-no-two-elements-are-adjacent/

Maximum sum such that no two elements are adjacent