计算机与现代化 ›› 2013, Vol. 1 ›› Issue (7): 47-050.doi: 10.3969/j.issn.1006-2475.2013.07.012

• 算法设计与分析 • 上一篇    下一篇

基于m-树的动态菜单生成算法的研究与设计

刘芳华,张光河,张 凯   

  1. 江西师范大学计算机信息工程学院,江西南昌330022
  • 收稿日期:2013-02-28 修回日期:1900-01-01 出版日期:2013-07-17 发布日期:2013-07-17

Research and Design of Dynamic Menu Generation Algorithm Based on M-tree

LIU Fang-hua, ZHANG Guang-he, ZHANG Kai   

  1. School of Computer and Information Engineering, Jiangxi Normal University, Nanchang 330022, China
  • Received:2013-02-28 Revised:1900-01-01 Online:2013-07-17 Published:2013-07-17

摘要: 针对某些应用软件在使用中需要根据不同的角色来生成并显示不同的菜单这一需求,本文提出一种基于m-树的动态菜单生成算法。本算法通过对不同的用户进行分组并定义相应的角色,然后设定这些角色使用的菜单,最终达到不同的用户登录后产生并显示被赋权限的菜单。实验结果表明本算法能根据不同的用户角色产生并显示相应的菜单,明确了不同用户在程序中的分工,有效地避免了各种误操作,提高了工作效率。

关键词: m-树, 动态菜单, 分组, 角色, 用户, 算法

Abstract: According to the requirement of different roles accessing and showing different menus in some application software, this paper proposes a dynamic menu generation algorithm based on m-tree. The algorithm defines different roles grouped by different users, and then sets different menus for these roles. The relevant menus can be generated, shown and operated by different roles. The experiment results show the algorithm can avoid all kinds of misoperations. It can improve work efficiency with the proposed algorithm.

Key words: m-tree, dynamic menu, group, role, user, algorithm