[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rusure::math

Title:Mathematics at DEC
Moderator:RUSURE::EDP
Created:Mon Feb 03 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2083
Total number of notes:14613

931.0. "Neighbors in Matrix?" by LARVAE::TURNER (Mark Turner) Mon Sep 19 1988 16:56

How many neighbors does a cell in a 4-D matrix have?  

My notion of "neighbor" may be a bit peculiar, so here it is:

	1-D: two neighbors
                
		1#2
	
	2-D: eight neighbors:

		123
		4#5
		678

	3-D: 26 neighbors:

             Thinking of cells as cubes:

		 6 (one for each face)
	      + 12 (one for each edge)
	      +  8 (one for each corner)
	      ----
                26

	4-D: ??

    I can't visualize this in 4-D; does the notion even apply there?
    All help appreciated.


					Mark
T.RTitleUserPersonal
Name
DateLines
931.1CLT::GILBERT$8,000,000,000 in damagesMon Sep 19 1988 17:0514
    In n-dimensional space, the position of a cell is given by:

	(x , x , ..., x )
	  1   2        n

    Its neighbors (including itself) are the cells:

	(x +d , x +d , ..., x +d )
	  1  1   2  2        n  n

    where the d 's may independently equal -1, 0, or +1.
               i
                                             n
    Thus, in n-dimensional space, there are 3 - 1 proper neighbors of a cell.
931.2Two new N-dim hyperplanes, one "above", one "below"BEING::RABAHYdtn 381-1154Mon Sep 19 1988 17:065
    1-D:	2	0+2(3**0)
    2-D:	8	2+2(3**1)
    3-D:	26	8+2(3**2)
    4-D:	80	26+2(3**3)
    5-D:	242	80+2(3**4)
931.3Thanks!PANIC::TURNERTue Sep 20 1988 11:403
    Thanks!  
    
        -- Mark