Title: Application of Cognitive Algorithms in Optimal Power Allocation