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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
忙里偷闲发布了新的文献求助10
刚刚
cc关注了科研通微信公众号
1秒前
1秒前
1秒前
2秒前
灵灵完成签到,获得积分10
2秒前
3秒前
3秒前
王彬发布了新的文献求助10
3秒前
hhh应助路咕咕嗼采纳,获得20
3秒前
4秒前
初景发布了新的文献求助10
5秒前
5秒前
机智的方盒完成签到,获得积分10
6秒前
天天快乐应助粗心的老黑采纳,获得10
6秒前
6秒前
在你家吗完成签到,获得积分10
7秒前
orixero应助小猫猫采纳,获得30
7秒前
Galahad_14发布了新的文献求助10
7秒前
bsf123完成签到,获得积分10
7秒前
越明年应助科研通管家采纳,获得10
8秒前
8秒前
8秒前
v0id应助科研通管家采纳,获得10
8秒前
大模型应助科研通管家采纳,获得10
8秒前
哒哒哒发布了新的文献求助10
8秒前
aajhajkahna应助科研通管家采纳,获得10
8秒前
momo完成签到,获得积分10
8秒前
香蕉觅云应助科研通管家采纳,获得10
9秒前
赘婿应助科研通管家采纳,获得10
9秒前
9秒前
领导范儿应助科研通管家采纳,获得80
9秒前
Akim应助科研通管家采纳,获得10
9秒前
9秒前
SciGPT应助科研通管家采纳,获得10
9秒前
东方元语应助科研通管家采纳,获得20
9秒前
慕青应助科研通管家采纳,获得10
10秒前
打打应助科研通管家采纳,获得10
10秒前
10秒前
鳗鱼雪柳发布了新的文献求助10
10秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
An Introduction to Foreign Language Learning and Teaching 750
China Pluperfect I: Epistemology of Past and Outside in Chinese Art 520
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
Cosmos as Art Object: Studies in Plato's Timaeus and Other Dialogues 500
What is the Future of Psychotherapy in Digital Age? Technology, AI Bots, and Psychotherapy after Covid 444
煤炭地下气化渗流燃烧方法的研究 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7631887
求助须知:如何正确求助?哪些是违规求助? 9206276
关于积分的说明 19744090
捐赠科研通 7201183
什么是DOI,文献DOI怎么找? 3274710
关于科研通互助平台的介绍 2436577
邀请新用户注册赠送积分活动 2271320