Data Structures, Algorithms, & Applications in C++
Chapter 3, Exercise 8

(a)
Theta(m2n2+m3n)

(c)
Theta(m4+n3+m3n2)