»
首页
|
手机数码
|
汽车资讯
|
游戏硬件
|
评测专题
|
手机壁纸
|
海淘值得买
|
度假
|
求职招聘
|
广告联系
» 您尚未登录:请
登录
|
注册
|
标签
|
帮助
|
小黑屋
|
TGFC Lifestyle
»
游戏业界综合讨论区
» 有没有人知道这个问题的算法?
发新话题
发布投票
发布商品
发布悬赏
发布活动
发布辩论
发布视频
公司招聘信息
打印
[求助]
有没有人知道这个问题的算法?
hww7
小黑屋
帖子
10
精华
0
积分
4102
激骚
0 度
爱车
主机
相机
手机
注册时间
2007-11-16
发短消息
加为好友
当前离线
1
#
大
中
小
发表于 2007-11-25 14:45
显示全部帖子
I suggest that:
//a,b,c,d,e,f,are known,x,y are unknown;
//d={d1,d2,d3,d4}are known;
(a,b),(c,d),(e,f),(x,y)
--------------------------------
sqrt((a-c)^2+(b-d)^2)=>D1
then match D1 with d set
then may delete the same one in d set;
----------------------------------
sqrt((a-e)^2+(b-f)^2)=>D2
then match D2 with d set
then may delete the same one in d set;
--------------------------------------
sqrt((c-e)^2+(d-f)^2)=>D3
then match D3 with d set
then may delete the same one in d set;
---------------------------------------
you can delete 2 elements of d set,
So lets make a assumption D1=d1,D2=d2, then D3 is obvious, (c,d),(e,f) are both two colsest piont to the unknown point.
then use the ur junior high math skill^v^
solve the equations:
sqrt((x-c)^2+(y-d)^2)=d3\
=> (x,y)============\
sqrt((x-e)^2+(y-f)^2)=d4/ \
or \
sqrt((x-e)^2+(y-f)^2)=d3\ / choose the real one
=> (x,y)============/
sqrt((x-c)^2+(y-d)^2)=d4/
but the question has some ambiguity in the distance of two points.
[
本帖最后由 hww7 于 2007-11-25 14:49 编辑
]
UID
94017
帖子
10
精华
0
积分
4102
交易积分
0
阅读权限
1
在线时间
16 小时
注册时间
2007-11-16
最后登录
2016-3-26
查看详细资料
TOP
控制面板首页
密码修改
积分交易
积分记录
公众用户组
基本概况
版块排行
主题排行
发帖排行
积分排行
交易排行
在线时间
管理团队
管理统计