What Are the Key Components of Gram Schmidt Algorithms for QTQ-I in MATLAB?

  • Thread starter Thread starter Jamin2112
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around comparing various Gram Schmidt algorithms, specifically focusing on the context of QTQ-I in MATLAB. Participants are exploring the definitions and roles of components within the algorithms, such as qi and rij.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • Participants express confusion regarding the meaning and origin of qi in the Classical Gram Schmidt algorithm, as well as the role of rij. There is an exploration of how these components are utilized within the algorithm.

Discussion Status

Some participants provide clarifications about the definitions of qi and rij, suggesting that qi is the output of the algorithm and rij serves as a constant in calculations. There is an ongoing examination of the algorithm's structure, particularly regarding the order of operations and the use of previously calculated values.

Contextual Notes

Participants are working within the constraints of their assignment, which involves comparing algorithms and understanding their components without complete clarity on all definitions. There is an acknowledgment of the potential for confusion in the algorithm's setup.

Jamin2112
Messages
973
Reaction score
12

Homework Statement



So my assignment is to compare a variety of Graham Schmidt algorithms by looking at ||QTQ-I||1

Homework Equations



So my teacher has the algorithms for the Gram Schmidt and "Modified Gram Schmidt" written as

screen-capture-3-21.png

The Attempt at a Solution



So I'm confused about the qi which appears in the Classical one. Where did it come from? What does it mean?

Also, what is the rij? Just a constant to use in the next line?

Same with the stuff in the Modified one.

I just went ahead and typed into MATLAB even though it ain't makin' sense.
screen-capture-2-16.png
 
Physics news on Phys.org
Hi Jamin2112! :smile:

Jamin2112 said:
So I'm confused about the qi which appears in the Classical one. Where did it come from? What does it mean?

qi is introduced in this algorithm.
The point of the algorithm is to find a set of qi that form an orthonormal basis.
That is, qi is the "output" of the algorithm.

Jamin2112 said:
Also, what is the rij? Just a constant to use in the next line?

Yes, it is just a constant to use in the next line.

Note that it holds the result for the inner product of qi and aj, which is ultimately needed to calculate qj.
 
I like Serena said:
Hi Jamin2112! :smile:



qi is introduced in this algorithm.
The point of the algorithm is to find a set of qi that form an orthonormal basis.
That is, qi is the "output" of the algorithm.


But if you look in the Classical Gram Schmidt algorithm, q is used on the right side of an equality before it has been defined.
 
Jamin2112 said:
But if you look in the Classical Gram Schmidt algorithm, q is used on the right side of an equality before it has been defined.

I see why you might think that, but no it isn't.
Check the range of the inner loop.

Any qj is only used after it has been calculated.

In the first iteration of the outer loop (j=1), the inner loop is not executed (since i runs from 1 to j-1).
In every next iteration of the outer loop, only the qj that have already been calculated are used.
 
I like Serena said:
I see why you might think that, but no it isn't.
Check the range of the inner loop.

Any qj is only used after it has been calculated.

In the first iteration of the outer loop (j=1), the inner loop is not executed (since i runs from 1 to j-1).
In every next iteration of the outer loop, only the qj that have already been calculated are used.

hmmmmm ...

Well, the program seems to running without any errors, so I'll take your word for it!
 
Jamin2112 said:
hmmmmm ...

Well, the program seems to running without any errors, so I'll take your word for it!

All right. I'll leave it at that then. :smile:

Let me know if you have more questions.
 
I like Serena said:
All right. I'll leave it at that then. :smile:

Let me know if you have more questions.

Turned it in and got 10/10 [PLAIN]http://www.fastfatburning.org/wp-content/plugins/RSSPoster_PRO/cache/c2584_success_baby.jpg

But I do have another question. Refer yourself to my QR Decomposition thread.
 
Last edited by a moderator:

Similar threads

  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
6K
Replies
10
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K