benchmarks.wiki / Public workspace

MMLU-Pro / 10385 / To compute the matrix product M_1M_2, where M_1 has p rows and q columns and…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

question

To compute the matrix product M_1M_2, where M_1 has p rows and q columns and where M_2 has q rows and r columns, takes time proportional to pqr, and the result is a matrix of p rows and r columns. Consider the product of three matrices N_1N_2N_3 that have, respectively, w rows and x columns, x rows and y columns, and y rows and z columns. Under what condition will it take less time to compute the product as (N_1N_2)N_3 (i.e., multiply the first two matrices first) than to compute it as N_1(N_2 N_3)?

category

computer science

options

  1. w > z
  2. 1/w + 1/y > 1/x + 1/z
  3. y > z
  4. 1/x + 1/z < 1/w + 1/y
  5. 1/w + 1/z > 1/x + 1/y
  6. There is no such condition; i.e., they will always take the same time.
  7. x > y
  8. 1/w + 1/x < 1/y + 1/z
  9. 1/x + 1/y > 1/w + 1/z
  10. x < y

src

ori_mmlu-college_computer_science

Discussion

Discussion

No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Source and history

Official source

initial import