Volume 0. Getting Started 414 - Machined Surfaces

该博客介绍了一个计算两个机器加工表面接触后剩余空隙的问题。输入是包含'X'和空格的数字图像,输出是接触后剩余的空格总数。处理涉及将表面水平移动直到它们接触,不考虑旋转或扭曲。解题策略是计算每行的空格数,找出最小值并求和。
摘要由CSDN通过智能技术生成


Machined Surfaces

An imaging device furnishes digital images of two machined surfaces that eventually will be assembled in contact with each other. The roughness of this final contact is to be estimated.

A digital image is composed of the two characters, "X" and " "(space). There are always 25 columns to an image, but the number of rows,N, is variable. Column one (1) will always have an"X" in it and will be part of the left surface. The left surface can extend to the right from column one (1) as contiguousX's.

Similarly, column 25 will always have an "X" in it and will be part of the right surface. The right surface can extend to the left from column 25 as contiguousX's.

Digital-Image View of Surfaces

 
		 Left     		                           Right

XXXX XXXXX tex2html_wrap_inline50

XXX XXXXXXX

XXXXX XXXX

XX XXXXXX

. .

. .

. .

XXXX

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值