A Simple Optimal Parallel Algorithm for Reporting Paths in a Tree

作者
Andrzej Lingas,Anil Maheshwari
出处
期刊:Parallel Processing Letters [World Scientific]
卷期号:07 (01): 3-11 被引量:2
标识
DOI:10.1142/s0129626497000036
摘要

We present optimal parallel solutions to reporting paths between pairs of nodes in an n-node tree. Our algorithms are deterministic and designed to run on an exclusive read exclusive write parallel random-access machine (EREW PRAM). In particular, we provide a simple optimal parallel algorithm for preprocessing the input tree such that the path queries can be answered efficiently. Our algorithm for preprocessing runs in O( log n) time using O(n/ log n) processors. Using the preprocessing, we can report paths between k node pairs in O( log n + log k) time using O(k + (n + S)/ log n) processors on an EREW PRAM, where S is the size of the output. In particular, we can report the path between a single pair of distinct nodes in O( log n) time using O(L/ log n) processors, where L denotes the length of the path.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
可乐冰红茶完成签到,获得积分10
刚刚
李洪卓发布了新的文献求助20
1秒前
春秋完成签到,获得积分10
1秒前
bkagyin的应助被GRY采纳,获得10
1秒前
渡人舟的应助被积极的尔岚采纳,获得10
2秒前
2秒前
3秒前
molihuakai的应助被叶武林采纳,获得10
3秒前
lixiang完成签到,获得积分10
3秒前
wpx驳回了ding的应助
3秒前
科研通AI6.4的应助被duanhahaha采纳,获得10
7秒前
Ava的应助被超级的乐巧采纳,获得10
7秒前
bsaioj完成签到,获得积分10
7秒前
万能图书馆的应助被weining采纳,获得10
7秒前
8秒前
8秒前
10秒前
aa发布了新的文献求助10
10秒前
坦率帅哥发布了新的文献求助10
10秒前
11秒前
muyongxin发布了新的文献求助10
12秒前
ding的应助被李洪卓采纳,获得10
12秒前
GRY完成签到,获得积分10
13秒前
13秒前
风筝与亭完成签到 ,获得积分10
13秒前
14秒前
14秒前
the_coco的应助被bsaioj采纳,获得30
15秒前
GRY发布了新的文献求助10
16秒前
合适的平安完成签到,获得积分10
16秒前
16秒前
16秒前
16秒前
Akim的应助被体贴剑成采纳,获得10
19秒前
20秒前
12A发布了新的文献求助10
20秒前
天真醉薇发布了新的文献求助10
20秒前
许多年以后完成签到,获得积分10
22秒前
南风向北发布了新的文献求助10
22秒前
22秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
自動車の空力技術 800
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 800
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
Issues in Task-Based Language Teaching 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 化学工程 工程类 有机化学 物理 复合材料 生物化学 内科学 细胞生物学 基因 遗传学 免疫学 冶金 光电子学 癌症研究
热门帖子
关注 科研通微信公众号,转发送积分 7784000
求助须知:如何正确求助?哪些是违规求助? 9323286
关于积分的说明 20393855
捐赠科研通 7372632
什么是DOI,文献DOI怎么找? 3320849
关于科研通互助平台的介绍 2468807
邀请新用户注册赠送积分活动 2337082