• Remix
  • Share
  • New Entry

on 6 Oct 2022
  • 1
  • 8
  • 0
  • 0
  • 279
N=5^9
N = 1953125
v=zeros(N,2);
a=5;rng(2);
c=[[1,1];[1,0];[0,1];[0, 0];[.5,0];[.5,1];[1,.5]];
plot(c(:,1),c(:,2),'.r');
p=[0,0];
lc=1;
for i=1:N
idx = randi(a);
while idx==(mod(lc+1,a)+1)
idx = randi(a);
end
lc=idx;
s=c(idx,:);
p=(p+s)/2;
v(i,:)=p;
end
plot(v(:,1),v(:,2),'*',markersize=3)
xlim([0,1])
ylim([0,1])
axis off
Image
Remix Tree