Loading [MathJax]/jax/output/SVG/jax.js
Research article Special Issues

Potentiality of generative AI tools in higher education: Evaluating ChatGPT's viability as a teaching assistant for introductory programming courses


  • Received: 06 March 2024 Revised: 09 May 2024 Accepted: 17 May 2024 Published: 03 June 2024
  • With the advent of large language models like ChatGPT, there is interest in leveraging these tools as teaching assistants in higher education. However, important questions remain regarding the effectiveness and appropriateness of AI systems in educational settings. This study evaluated ChatGPT's potential as a teaching assistant for an introductory programming course. We conducted an experimental study where ChatGPT was prompted in response to common student questions and misconceptions from a first-year programming course. This study was conducted over a period of 2 weeks with 20 undergraduate students and 5 faculty members from the department of computer science. ChatGPT's responses were evaluated along several dimensions—accuracy, completeness, pedagogical soundness, and the ability to resolve student confusion by five course faculties through a survey. Additionally, another survey was administered to students in the course to assess their perception of ChatGPT's usefulness after interacting with the tool. The findings suggested that while ChatGPT demonstrated strengths in explaining introductory programming concepts accurately and completely, it showed weaknesses in resolving complex student confusion, adapting responses to individual needs, and providing tailored debugging assistance. This study highlighted key areas needing improvement and provided a basis to develop responsible integration strategies that harness AI to enrich rather than replace human instruction in technical courses. The results, based on the limited sample size and study duration, indicated that ChatGPT has potential as a supplemental teaching aid for core concepts, but also highlighted areas where human instruction may be particularly valuable, such as providing advanced support. Further research with larger samples and longer study periods is needed to assess the generalizability of these findings.

    Citation: Zishan Ahmed, Shakib Sadat Shanto, Akinul Islam Jony. Potentiality of generative AI tools in higher education: Evaluating ChatGPT's viability as a teaching assistant for introductory programming courses[J]. STEM Education, 2024, 4(3): 165-182. doi: 10.3934/steme.2024011

    Related Papers:

    [1] Sung Woo Choi . Explicit characteristic equations for integral operators arising from well-posed boundary value problems of finite beam deflection on elastic foundation. AIMS Mathematics, 2021, 6(10): 10652-10678. doi: 10.3934/math.2021619
    [2] Moh. Alakhrass . A note on positive partial transpose blocks. AIMS Mathematics, 2023, 8(10): 23747-23755. doi: 10.3934/math.20231208
    [3] Xinfeng Liang, Mengya Zhang . Triangular algebras with nonlinear higher Lie n-derivation by local actions. AIMS Mathematics, 2024, 9(2): 2549-2583. doi: 10.3934/math.2024126
    [4] Cui-Xia Li, Long-Quan Yong . Modified BAS iteration method for absolute value equation. AIMS Mathematics, 2022, 7(1): 606-616. doi: 10.3934/math.2022038
    [5] Sara Smail, Chafika Belabbaci . A characterization of Wolf and Schechter essential pseudospectra. AIMS Mathematics, 2024, 9(7): 17146-17153. doi: 10.3934/math.2024832
    [6] Yuna Zhao . Construction of blocked designs with multi block variables. AIMS Mathematics, 2021, 6(6): 6293-6308. doi: 10.3934/math.2021369
    [7] Wen-Ning Sun, Mei Qin . On maximum residual block Kaczmarz method for solving large consistent linear systems. AIMS Mathematics, 2024, 9(12): 33843-33860. doi: 10.3934/math.20241614
    [8] Shakir Ali, Amal S. Alali, Atif Ahmad Khan, Indah Emilia Wijayanti, Kok Bin Wong . XOR count and block circulant MDS matrices over finite commutative rings. AIMS Mathematics, 2024, 9(11): 30529-30547. doi: 10.3934/math.20241474
    [9] James Daniel, Kayode Ayinde, Adewale F. Lukman, Olayan Albalawi, Jeza Allohibi, Abdulmajeed Atiah Alharbi . Optimised block bootstrap: an efficient variant of circular block bootstrap method with application to South African economic time series data. AIMS Mathematics, 2024, 9(11): 30781-30815. doi: 10.3934/math.20241487
    [10] Ziqiang Wang, Qin Liu, Junying Cao . A higher-order numerical scheme for system of two-dimensional nonlinear fractional Volterra integral equations with uniform accuracy. AIMS Mathematics, 2023, 8(6): 13096-13122. doi: 10.3934/math.2023661
  • With the advent of large language models like ChatGPT, there is interest in leveraging these tools as teaching assistants in higher education. However, important questions remain regarding the effectiveness and appropriateness of AI systems in educational settings. This study evaluated ChatGPT's potential as a teaching assistant for an introductory programming course. We conducted an experimental study where ChatGPT was prompted in response to common student questions and misconceptions from a first-year programming course. This study was conducted over a period of 2 weeks with 20 undergraduate students and 5 faculty members from the department of computer science. ChatGPT's responses were evaluated along several dimensions—accuracy, completeness, pedagogical soundness, and the ability to resolve student confusion by five course faculties through a survey. Additionally, another survey was administered to students in the course to assess their perception of ChatGPT's usefulness after interacting with the tool. The findings suggested that while ChatGPT demonstrated strengths in explaining introductory programming concepts accurately and completely, it showed weaknesses in resolving complex student confusion, adapting responses to individual needs, and providing tailored debugging assistance. This study highlighted key areas needing improvement and provided a basis to develop responsible integration strategies that harness AI to enrich rather than replace human instruction in technical courses. The results, based on the limited sample size and study duration, indicated that ChatGPT has potential as a supplemental teaching aid for core concepts, but also highlighted areas where human instruction may be particularly valuable, such as providing advanced support. Further research with larger samples and longer study periods is needed to assess the generalizability of these findings.



    A problem that occurs frequently in a variety of mathematical contexts, is to find the common invariant subspaces of a single matrix or set of matrices. In the case of a single endomorphism or matrix, it is relatively easy to find all the invariant subspaces by using the Jordan normal form. Also, some theoretical results are given only for the invariant subspaces of two matrices. However, when there are more than two matrices, the problem becomes much harder, and unexpected invariant subspaces may occur. No systematic method is known. In a recent article [1], we have provided a new algorithms to determine common invariant subspaces of a single matrix or of a set of matrices systematically.

    In the present article we consider a more general version of this problem, that is, providing two algorithms for simultaneous block triangularization and block diagonalization of sets of matrices. One of the main steps in the first two proposed algorithms, consists of finding the common invariant subspaces of matrices using the new method proposed in the recent article [1]. It is worth mentioning that an efficient algorithm to explicitly compute a transfer matrix which realizes the simultaneous block diagonalization of unitary matrices whose decomposition in irreducible blocks (common invariant subspaces) is known from elsewhere is given in [2]. An application of simultaneous block-diagonalization of normal matrices in quantum theory is presented in [3].

    In this article we shall be concerned with finite dimensions only. Of course the fact that a single complex matrix can always be put into triangular form follows readily from the Jordan normal form theorem [4]. For a set of matrices, Jacobson in [5] introduced the notion of a composition series for a collection of matrices. The idea of a composition series for a group is quite familiar. The Jordan-Hölder Theorem [4] states that any two composition series of the same group have the same length and the same composition factors (up to permutation). Jacobson in [5] characterized the simultaneous block triangularization of a set of matrices by the existence of a chain {0}=V0V1...Vt=Cn of invariant subspaces with dimension dim(Vi/Vi1)=ni. Therefore, in the context of a collection of matrices Ω={Ai}Ni=1, the idea is to locate a common invariant subspace V of minimal dimension d of a set of matrices Ω. Assume V is generated by the (linearly independent) set B1={u1,u2,...,ud}, and let B={u1,u2,...,ud,ud+1,ud+2,...,un} be a basis of Cn containing B1. Upon setting S=(u1,u2,...,ud,ud+1,ud+2,...,un), S1AiS has the block triangular form

    S1AiS=(Bi1,1Bi1,20Bi2,2),

    for i=1,...,n. Thereafter, one may define a quotient of the ambient vector space, and each of the matrices in the given collection will pass to this quotient. As such, one defines

    Ti=Bi2,2=(0(nd)×dInd)S1AiS(0d×(nd)Ind).

    Then one may begin again the process of looking for a common invariant subspace of minimal dimension of a set of matrices {Ti}Ni=1 and iterate the procedure. Since all spaces and matrices are of finite dimension, the procedure must terminate at some point. Again, any two such composition series will be isomorphic. When the various quotients and submatrices are lifted back to the original vector space, one obtains precisely the block-triangular form for the original set of matrices. It is important to find a composition series in the construction in order to make the set of matrices as "block-triangular as possible."

    Dubi [6] gave an algorithmic approach to simultaneous triangularization of a set of matrices based on the idea of Jacobson in [5]. In the case of simultaneous triangularization, it can be understood as the existence of a chain {0}=V0V1...Vt=Cn of invariant subspaces with dimension dim(Vi)=i. We generalize his study to cover simultaneous block triangularization of a set of matrices. The generalized algorithm depends on the novel algorithm for constructing invariant subspaces of a set of matrices given in the recent article [1].

    Specht [7] (see also [8]) proved that if the associative algebra L generated by a set of matrices Ω over C satisfies L=L, then Ω admits simultaneous block triangularization if and only if it admits simultaneous block diagonalization, in both cases via a unitary matrix. Following a result of Specht, we prove that a set of matrices Ω admits simultaneous block diagonalization if and only if the set Γ=ΩΩ admits simultaneous block triangularization. Finally, an algorithmic approach to simultaneous block diagonalization of a set of matrices based on this fact is proposed.

    The latter part of this paper presents an alternate approach for simultaneous block diagonalization of a set of n×n matrices {As}Ns=1 by an invertible matrix that does not require finding the common invariant subspaces. Maehara et al. [9] introduced an algorithm for simultaneous block diagonalization of a set of matrices by a unitary matrix based on the existence of a Hermitian commuting matrix. Here, we extend their algorithm to simultaneous block diagonalization of a set of matrices by an invertible matrix based on the existence of a commuting matrix which is not necessarily Hermitian. For example, consider the set of matrices Ω={Ai}2i=1 where

    A1=(100220111),A2=(000210010). (1.1)

    The only Hermitian matrix commuting with the set Ω is the identity matrix. Therefore, we cannot apply the proposed algorithm given in [9]. However, one can verify that the following non Hermitian matrix C commutes with all the matrices {Ai}2i=1

    C=(000210010). (1.2)

    The matrix C has distinct eigenvalues λ1=0,λ2=1 with algebraic multiplicities n1=2,n2=1, respectively. Moreover, the matrix C is not diagonalizable. Therefore, we cannot construct the eigenvalue decomposition for the matrix C. However, one can decompose the matrix C by its generalized eigen vectors as follows:

    S1CS=(010000001)=(0100)(1), (1.3)

    where

    S=(0120011101). (1.4)

    Initially, it is noted that the matrices {Ai}2i=1 can be decomposed into two diagonal blocks by the constructed invertible matrix S where

    S1A1S=(11201)(2),S1A2S=(0100)(1). (1.5)

    Then, a new algorithm is developed for simultaneous block diagonalization by an invertible matrix based on the generalized eigenvectors of a commuting matrix. Moreover, a new characterization is presented by proving that the existence of a commuting matrix that possesses at least two distinct eigenvalues is the necessary and sufficient condition to guarantee the simultaneous block diagonalization by an invertible matrix.

    An outline of the paper is as follows. In Section 2 we review several definitions pertaining to block-triangular and block-diagonal matrices and state several elementary consequences that follow from them. In Section 3, following a result of Specht [7] (see also [8]), we provide conditions for putting a set of matrices into block-diagonal form simultaneously. Furthermore, we apply the theoretical results to provide two algorithms that enable a collection of matrices to be put into block-triangular form or block-diagonal form simultaneously by a unitary matrix based on the existence of invariant subspaces. In Section 4, a new characterization is presented by proving that the existence of a commuting matrix that possesses at least two distinct eigenvalues is the necessary and sufficient condition to guarantee the simultaneous block diagonalization by an invertible matrix. Furthermore, we apply the theoretical results to provide an algorithm that enables a collection of matrices to be put into block-diagonal form simultaneously by an invertible matrix based on the existence of a commuting matrix. Sections 3 and 4 also provide concrete examples using the symbolic manipulation system Maple.

    Let Ω be a set of n×n matrices over an algebraically closed field F, and let L denote the algebra generated by Ω over F. Similarly, let Ω be the set of the conjugate transpose of each matrix in Ω and L denote the algebra generated by Ω over F.

    Definition 2.1. An n×n matrix A is given the notation BT(n1,...,nt) provided A is block upper triangular with t square blocks on the diagonal, of sizes n1,...,nt, where t2 and n1+...+nt=n. That is, a block upper triangular matrix A has the form

    A=(A1,1A1,2A1,t0A2,2A2,t00At,t) (2.1)

    where Ai,j is a square matrix for all i=1,...,t and j=i,...,t.

    Definition 2.2. A set of n×n matrices Ω is BT(n1,...,nt) if all of the matrices in Ω are BT(n1,...,nt).

    Remark 2.3. A set of n×n matrices Ω admits a simultaneous triangularization if it is BT(n1,...,nt) with ni=1 for i=1,...,t.

    Remark 2.4. A set of n×n matrices Ω is BT(n1,...,nt) if and only if the algebra L generated by Ω is BT(n1,...,nt).

    Proposition 2.5. [7] (see also [8]) Let Ω be a nonempty set of complex n×n matrices. Then, there is a nonsingular matrix S such that SΩS1 is BT(n1,...,nt) if and only if there is a unitary matrix U such that UΩU is BT(n1,...,nt).

    Theorem 2.6. [5,Chapter Ⅳ] Let Ω be a nonempty set of complex n×n matrices. Then, there is a unitary matrix U such that UΩU is BT(n1,...,nt) if and only if the set Ω has a chain {0}=V0V1...Vt=Cn of invariant subspaces with dimension dim(Vi/Vi1)=ni.

    Definition 2.7. An n×n matrix A is given the notation BD(n1,...,nt) provided A is block diagonal with t square blocks on the diagonal, of sizes n1,...,nt, where t2, n1+...+nt=n, and the blocks off the diagonal are the zero matrices. That is, a block diagonal matrix A has the form

    A=(A1000A2000At) (2.2)

    where Ak is a square matrix for all k=1,...,t. In other words, matrix A is the direct sum of A1,...,At. It can also be indicated as A1A2...At.

    Definition 2.8. A set of n×n matrices Ω is BD(n1,...,nt) if all of the matrices in Ω are BD(n1,...,nt).

    Remark 2.9. A set of n×n matrices Ω admits a simultaneous diagonalization if it is BD(n1,...,nt) with ni=1 for i=1,...,t.

    Remark 2.10. A set of n×n matrices Ω is BD(n1,...,nt) if and only if the algebra L generated by Ω is BD(n1,...,nt).

    Proposition 2.11. [7] (see also [8]) Let Ω be a nonempty set of complex n×n matrices and let L be the algebra generated by Ω over C. Suppose L=L. Then, there is a nonsingular matrix S such that SLS1 is BT(n1,...,nt) if and only if there is a unitary matrix U such that ULU is BD(n1,...,nt).

    Dubi [6] gave an algorithmic approach to simultaneous triangularization of a set of n×n matrices. In this section, we will generalize his study to cover simultaneous block triangularization and simultaneous block diagonalization of a set of n×n matrices. The generalized algorithms depend on the novel algorithm for constructing invariant subspaces of a set of matrices given in the recent article [1] and Theorem 3.3.

    Lemma 3.1. Let Ω be a nonempty set of complex n×n matrices, Ω be the set of the conjugate transpose of each matrix in Ω and L be the algebra generated by Γ=ΩΩ. Then, L=L.

    Proof. Let A be a matrix in L. Then, A=P(B1,...,Bm) for some multivariate noncommutative polynomial P(x1,...,xm) and matrices {Bi}mi=1Γ. Therefore, A=P(B1,...,Bm)=Q(B1,...,Bm) for some multivariate noncommutative polynomial Q(x1,...,xm) where the matrices {Bi}mi=1Γ=Γ. Hence, the matrix AL

    Lemma 3.2. Let Ω be a nonempty set of complex n×n matrices and Ω be the set of the conjugate transpose of each matrix in Ω, and Γ=ΩΩ. Then, there is a unitary matrix U such that UΓU is BD(n1,...,nt) if and only if there is a unitary matrix U such that UΩU is BD(n1,...,nt).

    Proof. Assume that there exists a unitary matrix U such that UΩU is BD(n1,...,nt). Then, (UΩU)=UΩU is BD(n1,...,nt). Hence, UΓU is BD(n1,...,nt).

    Theorem 3.3. Let Ω be a nonempty set of complex n×n matrices and Ω be the set of the conjugate transpose of each matrix in Ω, and Γ=ΩΩ. Then, there is a unitary matrix U such that UΩU is BD(n1,...,nt) if and only if there is a unitary matrix U such that UΓU is BT(n1,...,nt).

    Proof. Let L be the algebra generated by Γ. Then, L=L using Lemma 3.1. Now, by applying Proposition 2.11 and Lemma 3.2, the following statements are equivalent :

    There is a unitary matrix U such that UΓU is BT(n1,...,nt).

    There is a unitary matrix U such that ULU is BT(n1,...,nt).

    There is a unitary matrix U such that ULU is BD(n1,...,nt).

    There is a unitary matrix U such that UΓU is BD(n1,...,nt).

    There is a unitary matrix U such that UΩU is BD(n1,...,nt).

    (1) Input: the set Ω={Ai}Ni=1.

    (2) Set k=0,B=ϕ,s=n,Ti=Ai,S2=I.

    (3) Search for a d-dimensional invariant subspace V=v1,v2,...,vd of a set of matrices {Ti}Ni=1 starting from d=1 up to d=s1. If one does not exist and k=0, abort and print "no simultaneous block triangularization". Else, if one does not exist and k0, go to step (8). Else, go to next step.

    (4) Set Vk+1=(S2v1S2v2...S2vd),B=B{S2v1,S2v2,...,S2vd},S1=(V1V2...Vk+1).

    (5) Find a basis {u1,u2,...,ul} for the orthogonal complement of B.

    (6) Set S2=(u1u2...ul),S=(S1S2), and

    Ti=(0(sd)×dIsd)S1AiS(0d×(sd)Isd).

    (7) Set k=k+1,s=sd, and return to step (3).

    (8) Compute the QR decomposition of the invertible matrix S, by means of the Gram–Schmidt process, to convert it to a unitary matrix Q.

    (9) Output: a unitary matrix U as the conjugate transpose of the resulting matrix Q.

    Remark 3.4. If one uses any non-orthogonal complement in step 5 of Algorithm A, then the matrix S is invertible such that S1ΩS is BT(n1,...,nt). However, in such a case, one cannot guarantee that UΩU is BT(n1,...,nt).

    Example 3.5. The set of matrices Ω={Ai}2i=1 admits simultaneous block triangularization where

    A1=(321011050000014012131113020025010006),A2=(441244840360001012320444168524404102880400040). (3.1)

    Applying Algorithm A to the set Ω can be summarized as follows:

    Input: Ω.

    Initiation step:

    We have k=0,B=ϕ,s=6,T1=A1,T2=A2,S2=I.

    In the first iteration:

    We found two-dimensional invariant subspace V=e1,e4 of a set of matrices {Ti}2i=1. Therefore, B={e1,e4},S1=(e1,e4),S2=(e2,e3,e5,e6),

    T1=(5000141220251006),T2=(360011232444128840040), (3.2)

    k=1, and s=4.

    In the second iteration: We found two-dimensional invariant subspace V=e2,e3 of a set of matrices {Ti}2i=1. Therefore, B={e1,e4,e3,e5},S1=(e1,e4,e3,e5),S2=(e2,e6),

    T1=(5016),T2=(361440), (3.3)

    k=2, and s=2.

    In the third iteration: There is no one-dimensional invariant subspace of a set of matrices {Ti}2i=1. Therefore, S=(e1e4e3e5e2e6), and the corresponding unitary matrix is

    U=(100000000100001000000010010000000001)

    such that the set UΩU={UAiU}2i=1 is BT(2,2,2) where

    UA1U=(301121111133004112000225000050000016),UA2U=(444481244528416400324124001284800003610000440). (3.4)

    (1) Input: the set Ω={Ai}Ni=1.

    (2) Construct the set Γ=ΩΩ.

    (3) Find a unitary matrix U such that UΓU is BT(n1,...,nt) using Algorithm A.

    (4) Output: a unitary matrix U.

    Remark 3.6. Algorithm B provides the finest block-diagonalization. Moreover, the number of the blocks equals the number the of the invariant subspaces, and the size of each block is ni×ni, where ni is the dimension of the invariant subspace.

    Example 3.7. The set of matrices Ω={Ai}2i=1 admits simultaneous block diagonalization where

    A1=(3000000020000000200000001000000010000000100000003),A2=(0000000000000001000000000000000000000010001000000). (3.5)

    Applying Algorithm B to the set Ω can be summarized as follows:

    Input: Γ=ΩΩ.

    Initiation step:

    We have k=0,B=ϕ,s=7,T1=A1,T2=A2,T3=AT2,S2=I.

    In the first iteration:

    We found one-dimensional invariant subspace V=e5 of a set of matrices {Ti}3i=1. Therefore, B={e5},S1=(e5),S2=(e1,e2,e3,e4,e6,e7),

    T1=(300000020000002000000100000010000003),T2=(000000000000010000000000000100100000),T3=TT2, (3.6)

    k=1, and s=6.

    In the second iteration: We found two-dimensional invariant subspace V=e4,e5 of a set of matrices {Ti}3i=1. Therefore, B={e5,e4,e6},S1=(e5e4e6),S2=(e1,e2,e3,e7),

    T1=(3000020000200003),T2=(0000000001001000),T3=TT2, (3.7)

    k=2, and s=4.

    In the third iteration: We found two-dimensional invariant subspace V=e2,e3 of a set of matrices {Ti}3i=1. Therefore, B={e5,e4,e6,e2,e3},S1=(e5e4e6e2e3),S2=(e1,e7),

    T1=(3003),T2=(0010),T3=(0100), (3.8)

    k=3, and s=2.

    In the fourth iteration: There is no one-dimensional invariant subspace of a set of matrices {Ti}3i=1. Therefore, S=(e5e4e6e2e3e1e7), and the corresponding unitary matrix is

    U=(0000100000100000000100100000001000010000000000001)

    such that the set UΩU={UAiU}2i=1 is BD(1,2,2,2) where

    UA1U=(1)(1001)(2002)(3003),UA2U=(0)(0010)(0010)(0010). (3.9)

    Example 3.8. The set of matrices Ω={Ai}2i=1 admits simultaneous block diagonalization where

    A1=(3000000020000000200000001000000010000000100000003),A2=(0000000000100001000000000000000010000001001000000). (3.10)

    Similarly, applying Algorithm B to the set Ω provides the matrix S=(e6e5e7e1e3e2e4). Therefore, the corresponding unitary matrix is

    U=(0000010000010000000011000000001000001000000001000)

    such that the set UΩU={UAiU}2i=1 is BD(2,2,3) where

    UA1U=(1001)(3003)(200020001),UA2U=(0101)(0100)(010001000). (3.11)

    Example 3.9. The set of matrices Ω={Ai}3i=1 admits simultaneous block diagonalization where

    A1=(000000000020000000001000000000200000000000000000001000000000100000000010000000000),A2=(000100000100010000000001000000000000000100000000000000000000000000000100000000000),A3=(010000000000000000000000000100010000010000000001000000000000010000000000000000000). (3.12)

    Similarly, applying Algorithm B to the set Ω provides the matrix S=(e1+e5e9e3e6e8e7e1e5,e2e4). Therefore, the corresponding unitary matrix is

    U=(12200012200000000000010010000000000010000000000100000001001220001220000010000000000100000)

    such that the set UΩU={UAiU}3i=1 is BD(1,1,2,2,3) where

    UA1U=(0)(0)(1001)(1001)(000020002),UA2U=(0)(0)(0100)(0100)(002200000),UA3U=(0)(0)(0010)(0010)(020000200). (3.13)

    This section focuses on an alternate approach for simultaneous block diagonalization of a set of n×n matrices {As}Ns=1 by an invertible matrix that does not require finding the common invariant subspaces as Algorithm B given in the previous section. Maehara et al. [9] introduced an algorithm for simultaneous block diagonalization of a set of matrices by a unitary matrix based on the eigenvalue decomposition of a Hermitian commuting matrix. Here, we extend their algorithm to be applicable for a non-Hermitian commuting matrix by considering its generalized eigen vectors. Moreover, a new characterization is presented by proving that the existence of a commuting matrix that possesses at least two distinct eigenvalues is the necessary and sufficient condition to guarantee the simultaneous block diagonalization by an invertible matrix.

    Proposition 4.1. Let V be a vector space, and let T:VV be a linear operator. Let λ1,...,λk be distinct eigenvalues of T. Then, each generalized eigenspace Gλi(T) is T-invariant, and we have the direct sum decomposition

    V=Gλ1(T)Gλ2(T)...Gλk(T).

    Lemma 4.2. Let V be a vector space, and let T:VV, L:VV be linear commuting operators. Let λ1,...,λk be distinct eigenvalues of T. Then, each generalized eigenspace Gλi(T) is L-invariant.

    Proof. Let V be a vector space and λ1,...,λk be distinct eigenvalues of T with the minimal polynomial μ(x)=(xλ1)n1(xλ2)n2...(xλk)nk. Then, we have the direct sum decomposition V=Gλ1(T)Gλ2(T)...Gλk(T).

    For each i=1,..,k, let xGλi(T), and then (TλiI)nix=0. Then, (TλiI)niLx=L(TλiI)nix=0. Hence, LxGλi(T).

    Theorem 4.3. Let {As}Ns=1 be a set of n×n matrices. Then, the set {As}Ns=1 admits simultaneous block diagonalization by an invertible matrix S if and only if the set {As}Ns=1 commutes with a matrix C that possesses two distinct eigenvalues.

    Proof. Assume that the set {As}Ns=1 admits simultaneous block diagonalization by the an invertible matrix S such that

    S1AsS=Bs,1Bs,2...Bs,k,

    where the number of blocks k2, and the matrices Bs,1,Bs,2,...,Bs,k have sizes n1×n1,n2×n2,...,nk×nk, respectively, for all s=1,..,N.

    Now, define the matrix C as

    C=S(λ1In1×n1λ2In2×n2...λkInk×nk)S1,

    where λ1,λ2,...,λk are any distinct numbers.

    Clearly, the matrix C commutes with the set {As}Ns=1. Moreover, it has the distinct eigenvalues λ1,λ2,...,λk.

    Assume that the set {As}Ns=1 commutes with a matrix C that posseses distinct eigenvalues λ1,λ2,...,λk.

    Using Proposition 4.1, one can use the generalized eigenspace Gλi(C) of the matrix C associated to these distinct eigenvalues to decompose the matrix C as a direct sum of k matrices. This can be achieved by restricting the matrix C on the invariant subspaces Gλi(C) as follows:

    S1CS=[C]Gλ1(C)[C]Gλ2(C)...[C]Gλk(C)

    where

    S=(Gλ1(C),Gλ2(C),...,Gλk(C)).

    Using Lemma 4.2, one can restrict each matrix As on the invariant subspaces Gλi(C) to decompose the matrix As as a direct sum of k matrices as follows:

    S1AsS=[As]Gλ1(C)[As]Gλ2(C)...[As]Gλk(C).

    Remark 4.4. For a given set of n×n matrices {As}Ns=1, if the set {As}Ns=1 commutes only with the matrices having only one eigenvalue, then it does not admit a simultaneous block diagonalization by an invertible matrix.

    Algorithm C:

    (1) Input: the set Ω={As}Ns=1.

    (2) Construct the the following matrix:

    X=(IA1AT1IIA2AT2I...IANATNI).

    (3) Compute the null space of the matrix X and reshape the obtained vectors as n×n matrices. These matrices commute with all the matrices {As}Ns=1.

    (4) Choose a matrix C from the obtained matrices that possesses two distinct eigenvalues.

    (5) Find the distinct eigenvalues λ1,...,λk of the matrix C and the corresponding algebraic multiplicity n1,n2,...,nk.

    (6) Find each generalized eigenspace Gλi(C) of the matrix C associated to the eigenvalue λi by computing the null space of (CλiI)ni.

    (7) Construct the invertible matrix S as

    S=(Gλ1(C),Gλ2(C),...,Gλk(C)).

    (8) Verify that

    S1AsS=Bs,1Bs,2...Bs,k,

    where the matrices Bs,1,Bs,2,...,Bs,k have sizes n1×n1,n2×n2,...,nk×nk, respectively, for all s=1,..,N.

    (9) Output: an invertible matrix S.

    Remark 4.5. Algorithm C provides the finest block-diagonalization if one chooses a matrix C with maximum number of distinct eigenvalues. Moreover, the number of the blocks equals the number the of the distinct eigenvalues, and the size of each block is ni×ni, where ni is the algebraic multiplicity of the eigenvalue λi.

    Example 4.6. Consider the set of matrices Ω={Ai}6i=1 where

    A1=(000000000100000010010000001000000000),A2=(000100000000000001100000000000001000),A3=(000010000001000000000000100000010000),A4=(010000100000000000000000000001000010),A5=(001000000000100000000001000000000100),A6=(000000001000010000000010000100000000). (4.1)

    The set Ω admits simultaneous block diagonalization by an invertible matrix. An invertible matrix can be obtained by applying algorithm C to the set Ω as summarized below:

    A matrix C that commutes with all the matrices {Ai}6i=1 can be obtained as

    C=(000001000010000100001000010000100000). (4.2)

    .

    The distinct eigenvalues of the matrix C are λ1=1,λ2=1 with algebraic multiplicities n1=3,n2=3, respectively..

    The generalized eigenspaces of the matrix C associated to the distinct eigenvalues are

    Gλ1(C)=N(Cλ1I)3=e6e1,e2+e5,e4e3,Gλ2(C)=N(Cλ2I)3=e1+e6,e5e2,e3+e4. (4.3)

    The invertible matrix S=(Gλ1(C),Gλ2(C)) is

    S=(100100010010001001001001010010100100). (4.4)

    The set S1ΩS={S1AiS}6i=1 contains block diagonal matrices where

    S1A1S=(000001010)(000001010),S1A2S=(001000100)(001000100),S1A3S=(010100000)(010100000),S1A4S=(010100000)(010100000),S1A5S=(001000100)(001000100),S1A6S=(000001010)(000001010). (4.5)

    It is well known that a set of non-defective matrices can be simultaneously diagonalized if and only if the matrices commute. In the case of non-commuting matrices, the best that can be achieved is simultaneous block diagonalization. Both Algorithm B and the Maehara et al. [9] algorithm are applicable for simultaneous block diagonalization of a set of matrices by a unitary matrix. Algorithm C can be applied for block diagonalization by an invertible matrix when finding a unitary matrix is not possible. In case block diagonalization of a set of matrices is not possible by a unitary or an invertible matrix, then one may utilize block triangularization by Algorithm A. Algorithms A and B are based on the existence of invariant subspaces; however, Algorithm C is based on the existence of a commuting matrix which is not necessarily Hermitian, unlike the Maehara et al. algorithm.

    The authors declare they have not used Artificial Intelligence (AI) tools in the creation of this article.

    Ahmad Y. Al-Dweik and M. T. Mustafa would like to thank Qatar University for its support and excellent research facilities. R. Ghanam and G. Thompson are grateful to VCU Qatar and Qatar Foundation for their support.

    The authors declare that they have no conflicts of interest.

    Figure Listing 1.  Step 5 in Algorithm A.
    Figure Listing 2.  Step 6 in Algorithm A.
    Figure Listing 3.  Steps 8 & 9 in Algorithm A.
    Figure Listing 4.  Steps 2 & 3 in Algorithm C.
    Figure Listing 5.  Steps 6 & 7 in Algorithm C.


    [1] Abedi, M., Alshybani, I., Shahadat, M.R. and Murillo, M., Beyond Traditional Teaching: The Potential of Large Language Models and Chatbots in Graduate Engineering Education. Qeios, 2023. https://doi.org/10.32388/md04b0 doi: 10.32388/md04b0
    [2] Lund, B.D., Wang, T., Mannuru, N.R., Nie, B., Shimray, S. and Wang, Z., ChatGPT and a new academic reality: Artificial Intelligence‐written research papers and the ethics of the large language models in scholarly publishing. Journal of the Association for Information Science and Technology, 2023, 74(5): 570‒581. https://doi.org/10.1002/asi.24750 doi: 10.1002/asi.24750
    [3] Horvatić, D. and Lipic, T., Human-Centric AI: The Symbiosis of Human and Artificial Intelligence. Entropy, 2021, 23(3): 332. https://doi.org/10.3390/e23030332 doi: 10.3390/e23030332
    [4] Yang, S.J., Ogata, H., Matsui, T. and Chen, N.S., Human-centered artificial intelligence in education: Seeing the invisible through the visible. Computers and Education: Artificial Intelligence, 2021, 2: 100008. https://doi.org/10.1016/j.caeai.2021.100008 doi: 10.1016/j.caeai.2021.100008
    [5] Rastogi, C., Zhang, Y., Wei, D., Varshney, K.R., Dhurandhar, A. and Tomsett, R., Deciding Fast and Slow: The Role of Cognitive Biases in AI-assisted Decision-making. Proceedings of the ACM on Human-Computer Interaction, 2022, 6: 1–22. https://doi.org/10.1145/3512930 doi: 10.1145/3512930
    [6] Zhang, K. and Aslan, A.B., AI technologies for education: Recent research & future directions. Computers and Education: Artificial Intelligence, 2021, 2: 100025. https://doi.org/10.1016/j.caeai.2021.100025 doi: 10.1016/j.caeai.2021.100025
    [7] Rane, N.L., Choudhary, S.P., Tawde, A. and Rane, J., ChatGPT is not capable of serving as an author: ethical concerns and challenges of large language models in education. International Research Journal of Modernization in Engineering Technology and Science, 2023, 5(10): 851‒874. https://doi.org/10.56726/irjmets45212 doi: 10.56726/irjmets45212
    [8] Romero, M., Lepage, A. and Lille, B., Computational thinking development through creative programming in higher education. International Journal of Educational Technology in Higher Education, 2017, 14: 1‒15. https://doi.org/10.1186/s41239-017-0080-z doi: 10.1186/s41239-017-0080-z
    [9] Alasadi, E.A. and Baiz, C.R., Generative AI in Education and Research: Opportunities, Concerns, and Solutions. Journal of Chemical Education, 2023,100(8): 2965–2971. https://doi.org/10.1021/acs.jchemed.3c00323 doi: 10.1021/acs.jchemed.3c00323
    [10] Orrù, G., Piarulli, A., Conversano, C. and Gemignani, A., Human-like problem-solving abilities in large language models using ChatGPT. Frontiers in artificial intelligence, 2023, 6: 1199350. https://doi.org/10.3389/frai.2023.1199350 doi: 10.3389/frai.2023.1199350
    [11] Berendt, B., Littlejohn, A. and Blakemore, M., AI in education: learner choice and fundamental rights. Learning, Media and Technology, 2020, 45(3): 312–324. https://doi.org/10.1080/17439884.2020.1786399 doi: 10.1080/17439884.2020.1786399
    [12] Xu, W. and Ouyang, F., A systematic review of AI role in the educational system based on a proposed conceptual framework. Education and Information Technologies, 2022, 27(3): 4195‒4223. https://doi.org/10.1007/s10639-021-10774-y doi: 10.1007/s10639-021-10774-y
    [13] van Dijk, L.J., AI as the assistant of the teacher: an adaptive math application for primary schools. MS thesis, University of Twente, 2021. Available from: https://essay.utwente.nl/88893/.
    [14] Borthwick, K., Bradley, L. and Thouësny, S., CALL in a climate of change: adapting to turbulent global conditions – short papers from EUROCALL 2017. Research-publishing.net, 2017.
    [15] Kim, J., Merrill, K., Xu, K. and Sellnow, D.D., My Teacher Is a Machine: Understanding Students' Perceptions of AI Teaching Assistants in Online Education. International Journal of Human–Computer Interaction, 2020, 36(20): 1902–1911. https://doi.org/10.1080/10447318.2020.1801227 doi: 10.1080/10447318.2020.1801227
    [16] Zhai, X., Chu, X., Chai, C.S., Jong, M.S.Y., Istenic, A., Spector, M., et al., A Review of Artificial Intelligence (AI) in Education from 2010 to 2020. Complexity, 2021, 2021: 1–18. https://doi.org/10.1155/2021/8812542 doi: 10.1155/2021/8812542
    [17] Aggarwal, D., Exploring the Scope of Artificial Intelligence (AI) for Lifelong Education through Personalised & Adaptive Learning. Journal of Artificial Intelligence, Machine Learning and Neural Network (JAIMLNN), 2024, 4(01): 21–26. https://doi.org/10.55529/jaimlnn.41.21.26 doi: 10.55529/jaimlnn.41.21.26
    [18] Osmanoglu, B., Forms of Alliances between Humans and Technology: The Role of Human Agency to Design and Setting up Artificial Intelligence-based Learning Tools. Training, Education, and Learning Sciences, 2023,109. https://doi.org/10.54941/ahfe1003154 doi: 10.54941/ahfe1003154
    [19] Ansor, F., Zulkifli, N.A., Jannah, D.S.M. and Krisnaresanti, A., Adaptive Learning Based on Artificial Intelligence to Overcome Student Academic Inequalities. Journal of Social Science Utilizing Technology, 2023, 1(4): 202–213. https://doi.org/10.55849/jssut.v1i4.663 doi: 10.55849/jssut.v1i4.663
    [20] Pedro, F., Subosa, M., Rivas, A. and Valverde, P., Artificial intelligence in education : challenges and opportunities for sustainable development. MINISTERIO DE EDUCACIÓN, 2019. Available from: https://repositorio.minedu.gob.pe/handle/20.500.12799/6533.
    [21] Shanto, S.S., Ahmed, Z. and Jony, A.I., PAIGE: A generative AI-based framework for promoting assignment integrity in higher education. STEM education, 2023, 3(4): 288–305. https://doi.org/10.3934/steme.2023018 doi: 10.3934/steme.2023018
    [22] Shanto, S.S., Ahmed, Z. and Jony, A.I., Enriching Learning Process with Generative AI: A Proposed Framework to Cultivate Critical Thinking in Higher Education using Chat GPT. Tuijin Jishu/Journal of Propulsion Technology, 2024, 45(1): 3019–3029.
    [23] Yilmaz, R. and Yilmaz, F.G.K., Augmented intelligence in programming learning: Examining student views on the use of ChatGPT for programming learning. Computers in Human Behavior: Artificial Humans, 2023, 1(2): 100005. https://doi.org/10.1016/j.chbah.2023.100005 doi: 10.1016/j.chbah.2023.100005
    [24] Taherdoost, H., What Is the Best Response Scale for Survey and Questionnaire Design; Review of Different Lengths of Rating Scale / Attitude Scale / Likert Scale. papers.ssrn.com, 2019. Available from: https://papers.ssrn.com/sol3/papers.cfm?abstract_id = 3588604.
    [25] Ho, G.W.K., Examining Perceptions and Attitudes. Western Journal of Nursing Research, 2016, 39(5): 674–689. https://doi.org/10.1177/0193945916661302 doi: 10.1177/0193945916661302
    [26] Braun, V. and Clarke, V., Using Thematic Analysis in Psychology. Qualitative Research in Psychology, 2006, 3(2): 77–101. https://doi.org/10.1191/1478088706qp063oa doi: 10.1191/1478088706qp063oa
    [27] Deng, Q., Zheng, B. and Chen, J., The Relationship Between Personality Traits, Resilience, School Support, and Creative Teaching in Higher School Physical Education Teachers. Frontiers in Psychology, 2020, 11: 568906. https://doi.org/10.3389/fpsyg.2020.568906 doi: 10.3389/fpsyg.2020.568906
    [28] da S. Fernandes, P.R., Jardim, J. and de Sousa Lopes, M.C., The Soft Skills of Special Education Teachers: Evidence from the Literature. Education Sciences, 2021, 11(3): 125. https://doi.org/10.3390/educsci11030125 doi: 10.3390/educsci11030125
  • Author's biography Zishan Ahmed an enthusiastic undergraduate pursuing a Bachelor of Science in Computer Science and Engineering. In data science, natural language processing (NLP), and machine learning, he sees the greatest potential for innovation and influence. He is well-versed in several programming languages, including Python, Java, and C++, and is always keen to acquire new tools and technologies. His education has included data structures and algorithms, database management, artificial intelligence, and computer vision; Shakib Sadat Shanto an undergraduate currently pursuing a Bachelor of Science in Computer Science and Engineering at American International University-Bangladesh. He is extremely passionate about artificial intelligence and the data science domain. He wants to do further research on Educational Technology, Natural Language Processing, and Cyber Security; Akinul Islam Jony currently works as an Associate Professor of Computer Science at American International University-Bangladesh (AIUB). His current research interests include AI, machine learning, e-Learning, and educational technology
    Reader Comments
  • © 2024 the Author(s), licensee AIMS Press. This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0)
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Metrics

Article views(2542) PDF downloads(238) Cited by(5)

Figures and Tables

Figures(6)  /  Tables(1)

Other Articles By Authors

/

DownLoad:  Full-Size Img  PowerPoint
Return
Return

Catalog