Fast Monte Carlo Algorithms for Matrices I: Approximating Matrix Multiplication

矩阵乘法 数学 基质(化学分析) 组合数学 算法 矩阵范数 缩放比例 乘法(音乐) 规范(哲学) 蒙特卡罗方法 随机算法 离散数学 计算机科学 物理 几何学 数据库 法学 材料科学 复合材料 特征向量 政治学 统计 量子力学 量子
作者
Petros Drineas,Ravi Kannan,Michael W. Mahoney
出处
期刊:SIAM Journal on Computing [Society for Industrial and Applied Mathematics]
卷期号:36 (1): 132-157 被引量:525
标识
DOI:10.1137/s0097539704442684
摘要

Motivated by applications in which the data may be formulated as a matrix, we consider algorithms for several common linear algebra problems. These algorithms make more efficient use of computational resources, such as the computation time, random access memory (RAM), and the number of passes over the data, than do previously known algorithms for these problems. In this paper, we devise two algorithms for the matrix multiplication problem. Suppose A and B (which are $m\times n$ and $n\times p$, respectively) are the two input matrices. In our main algorithm, we perform c independent trials, where in each trial we randomly sample an element of $\{ 1,2,\ldots, n\}$ with an appropriate probability distribution ${\cal P}$ on $\{ 1,2,\ldots, n\}$. We form an $m\times c$ matrix C consisting of the sampled columns of A, each scaled appropriately, and we form a $c\times n$ matrix R using the corresponding rows of B, again scaled appropriately. The choice of ${\cal P}$ and the column and row scaling are crucial features of the algorithm. When these are chosen judiciously, we show that $CR$ is a good approximation to $AB$. More precisely, we show that $$ \left\|AB-CR\right\|_F = O(\left\|A\right\|_F \left\|B\right\|_F /\sqrt c) , $$ where $\|\cdot\|_F$ denotes the Frobenius norm, i.e., $\|A\|^2_F=\sum_{i,j}A_{ij}^2$. This algorithm can be implemented without storing the matrices A and B in RAM, provided it can make two passes over the matrices stored in external memory and use $O(c(m+n+p))$ additional RAM to construct C and R. We then present a second matrix multiplication algorithm which is similar in spirit to our main algorithm. In addition, we present a model (the pass-efficient model) in which the efficiency of these and other approximate matrix algorithms may be studied and which we argue is well suited to many applications involving massive data sets. In this model, the scarce computational resources are the number of passes over the data and the additional space and time required by the algorithm. The input matrices may be presented in any order of the entries (and not just row or column order), as is the case in many applications where, e.g., the data has been written in by multiple agents. In addition, the input matrices may be presented in a sparse representation, where only the nonzero entries are written.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
英俊的铭应助tw0125采纳,获得10
刚刚
少夫人完成签到,获得积分10
刚刚
2秒前
opticsLM完成签到,获得积分10
5秒前
wuran发布了新的文献求助30
8秒前
Pengpeng完成签到,获得积分10
8秒前
8秒前
科研通AI5应助阔达的星月采纳,获得10
9秒前
落寞归尘发布了新的文献求助10
9秒前
zj完成签到,获得积分10
9秒前
无花果应助野性的鹭洋采纳,获得10
10秒前
李君然完成签到 ,获得积分10
11秒前
SBoot完成签到,获得积分10
11秒前
Tree完成签到 ,获得积分10
11秒前
li关注了科研通微信公众号
12秒前
慕青应助微笑的严青采纳,获得10
13秒前
14秒前
14秒前
顾矜应助呓语采纳,获得10
15秒前
彭于晏应助科研通管家采纳,获得10
18秒前
酷波er应助科研通管家采纳,获得10
18秒前
香蕉觅云应助科研通管家采纳,获得10
18秒前
18秒前
柏林寒冬应助科研通管家采纳,获得10
18秒前
慕青应助科研通管家采纳,获得20
18秒前
柏林寒冬应助科研通管家采纳,获得10
18秒前
bkagyin应助科研通管家采纳,获得10
18秒前
19秒前
柏林寒冬应助科研通管家采纳,获得10
19秒前
19秒前
传奇3应助科研通管家采纳,获得10
19秒前
19秒前
19秒前
19秒前
犹豫帆布鞋完成签到,获得积分10
19秒前
20秒前
20秒前
打卡下班举报yang求助涉嫌违规
20秒前
21秒前
Sxq应助kitty采纳,获得10
23秒前
高分求助中
The Mother of All Tableaux: Order, Equivalence, and Geometry in the Large-scale Structure of Optimality Theory 3000
International Code of Nomenclature for algae, fungi, and plants (Madrid Code) (Regnum Vegetabile) 500
Maritime Applications of Prolonged Casualty Care: Drowning and Hypothermia on an Amphibious Warship 500
Comparison analysis of Apple face ID in iPad Pro 13” with first use of metasurfaces for diffraction vs. iPhone 16 Pro 500
Towards a $2B optical metasurfaces opportunity by 2029: a cornerstone for augmented reality, an incremental innovation for imaging (YINTR24441) 500
Robot-supported joining of reinforcement textiles with one-sided sewing heads 490
北师大毕业论文 基于可调谐半导体激光吸收光谱技术泄漏气体检测系统的研究 460
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 4063151
求助须知:如何正确求助?哪些是违规求助? 3601588
关于积分的说明 11438417
捐赠科研通 3324851
什么是DOI,文献DOI怎么找? 1827822
邀请新用户注册赠送积分活动 898376
科研通“疑难数据库(出版商)”最低求助积分说明 818997