Computer Engineering and Applications ›› 2011, Vol. 47 ›› Issue (36): 80-82.

• 研发、设计、测试 • Previous Articles     Next Articles

Method of adaptive programming

LIU Zhibin1,ZHU Xiaolong2,CAO Baoxiang1   

  1. 1.Computer Science College,Qufu Normal University,Rizhao,Shandong 276826,China
    2.School of Computer Science & Technology,Xi’an University of Post & Telecommunications,Xi’an 710121,China
  • Received:1900-01-01 Revised:1900-01-01 Online:2011-12-21 Published:2011-12-21

一种自适应程序设计方法

刘智斌1,朱晓龙2,曹宝香1   

  1. 1.曲阜师范大学 计算机科学学院,山东 日照 276826
    2.西安邮电学院 计算机学院,西安 710121

Abstract: The current computer programming is designed artificially,which has the weakness of passivity,rigidity and lack of flexibility.This paper proposes a method based on reinforcement learning mechanism,and realizes the corresponding algorithm.According to the environment and requirements,the agent can choose executive process independently and arrive at the optimal result by learning,realize the layered calls.Using this method,the executing program is decision-making,has a way to realize the adaption,and reduces the dependence on designer.The result shows that the method can achieve satisfactory execution efficiency.

Key words: adaptive programming, reinforcement learning, Q-learning, agent, optimization algorithm

摘要: 当前的程序设计都是人工设计执行流程,这种方法具有被动性、机械性、缺乏灵活性等缺点。提出一种基于强化学习的程序设计机制,并实现了相应的算法。根据环境情况和问题要求让计算机自主选择执行流程,通过学习使结果达到最优,同时能实现分层调用。采用这种方法,程序执行可以自主决策,较好地实现了自适应,减少了对设计者的依赖。结果显示,这种方法能取得较好的运行效率。

关键词: 自适应程序设计, 强化学习, Q学习, agent, 优化算法