宿舍经理的算法是什么? [英] What's Algorithm for Dormitory manager?

查看:66
本文介绍了宿舍经理的算法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<已删除的粗体标记-完全不必要>

嗨!
一个软件是宿舍管理器.一项功能是将许多学生安排到宿舍的房间里.
我有一个名单上的学生,还有很多房间(可能是不同的房间).
因此,我希望我的程序可以自动将他们安排在具有许多不同条件(性别,教职人员,大学,省或市的工作年限)的该宿舍的特定房间中.
但是我不知道算法吗?

我需要一些建议吗?
谢谢

Sorry, My english not good at all!

<Removed bold tags - completely unneccessary>

Hi!
A software is Dormitory manager. A feature is arrange many students into rooms of the dormitory.
I have a list student and many rooms (maybe different kind).
So i want my program can arrange they live in a specific room in this domitory automatically with many different criteria(sex, faculty, years in university, province or city).
But i don''t know the algorithm?

I need some advice?
Thank you

Sorry, My english not good at all!

推荐答案

您应该更好地解释您的需求.

一个好的练习是尝试了解所有限制条件(在同一个房间里允许同性的学生吗?),一旦所有限制条件都解决了,那么您应该开始考虑所需的数据库,如何存储数据,这是您需要的确切数据,表之间的关系...

一旦掌握了这些,就应该在程序的GUI上思考...您希望程序的用户能够做什么...

之后,您需要考虑一种算法,该算法将使用来自用户的输入来访问数据,并最终为您提供结果.

简而言之:将问题分成几层,然后将各层分成小问题.这样您就可以做到.

PS:这闻起来像作业……
You should explain a little bit better what you need.

A good exercise would be to try to know which are the constraints you have (are students of the same sex allowed in one room?) once you''ve got all your constraints, then you should start thinking on the database needed, how to store the data, which is the exact data you need, relationships between tables...

Once you''ve got this, then you should think on the GUI of your program... what do you want the user of the program to be able to do...

After that you will need to think of the algorithm that will access the data using the input from the user and that will give you results at the end.

In a few words: divide the problem in layers and then divide the layers in mini-problems. Then you''ll be able to make it.

PS: This smells like homework...


尝试

这篇关于宿舍经理的算法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆