算法基于用户输入记录 [英] Algorithm Sugession on the basis of user enterd record

查看:70
本文介绍了算法基于用户输入记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是初学者,我正在制作一个应用程序,根据他之前输入的用餐细节向用户推荐用餐。



我需要给向用户推荐4种类型:



他最多的一餐。

他吃的饭少了。

那天他吃得最多的一餐。

当时他吃的最多的一餐。

你能否推荐我应该使用哪种算法或方法让我可以开始学习实现这一点。任何指向该资源的链接都会有所帮助。

I am a beginner, I am making an app which will recommend meal to the user on the basis of his previously entered meal details.

I need to give 4 types of recommendation to the user:

The meal he had most.
The meal he had less.
The meal he had most on that day.
The meal he had most on that time.
Can you please recommend which algorithm or approach should I use so that I can start studying to implement that. Any link to the resource would be helpful.

推荐答案

正如Richard MacCutchan所说,您需要首先设计一个数据库来捕获每个用户拥有的每餐的信息。 。



这是数据库初学者指南 [ ^ ]



仔细考虑您需要的表格以及需要收集的信息。



接下来,您将需要一个程序来捕获那些信息 - 遗憾的是你没有提出一种语言。以下是 winforms <的资源列表/ a> [ ^ ]

asp tutorials [ ^ ]如果你想这样做一个网站。



当你使用App这个词时,你可能想看一下 CodeProject Android文章 [ ^ ]。



最后,你可能需要某种方式让用户识别自己(再次 - 在CodeProject和Google上有很多东西),然后询问一个建议。



您需要根据用户名(或id)查询数据库。对于最多和较少的查询,您需要了解GROUP BY和COUNT。对于时间元素,您可能需要了解BETWEEN(提示:不要使用确切的时间)



这是非常多的事情要去与...。所以试一试,如果遇到任何具体问题,请回来。



祝你好运。
As Richard MacCutchan said, you will need to design a Database first to capture the information about each meal each user has had.

Here's a link to a beginners guide to databases[^]

Think carefully about the tables you will need and what sort of information you will need to gather.

Next, you will need a program to capture that information - you haven't suggested a language unfortunately. Here is a list of resources for winforms[^]
and another list of asp tutorials[^] in case you want to do it as a website.

As you've used the word "App" you may want to look at the CodeProject Android articles[^] instead.

Finally, you will probably need some way for the User to identify themselves (again - there's lots of stuff on CodeProject and Google), then ask for a suggestion.

You will need to query your database based on the user name (or id). For the "most" and "less" queries you will need to learn about "GROUP BY" and "COUNT". For the "time" element you will probably need to learn about "BETWEEN" (Hint: Don't use an exact time)

That's an awful lot to be going on with. So give it a go, and come back if you hit any specific problems.

Good luck.


这篇关于算法基于用户输入记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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