Greetings all,
A while ago I developed an interest in Pathfinding Algorithms, and created some excel spreadsheets with VBA code that illustrated Breadth-First Searchs (BFS), Dijkstra's Algorithm and the A* Algorithm. In their simplest form Pathfinding Algorithms find a path, normally the shortest path, between two nodes given a dataset of nodes and connections between said nodes. (An easy to understand beginners overview of pathfinding can be found at http://www.policyalmanac.org/games/aStarTutorial.htm).
Up until now all my spreadsheets have used relatively small datasets. I now want to get more ambitious and have a dataset that is already in an Access database with over 5000 nodes and about 14000 paths that I want to use. While I have developed several Access databases and have used VBA extensively in Excel I have never used VBA in Access itself.
The spreadsheets all have a data table of node connections and a VBA Macro that does the following..
i) Load all the node connections data into an array
ii) Load the desired start and ending nodes
iii) Run the main algorithm that finds the path
iv) Write the path found to the spreadsheet
In excel i) ii) and iv) are simple loops and the complicated part is the Algorithm in part iii). I assume that algorithm will remain relatively unchanged in Access. Unfortunately I have no idea how one would do i), ii) and iv) in Access.
Specifically
A) How do I load the 14000 node connections from the table into my desired array and
B) How do I write the results array to a table?
Any suggestions, advice, or references I can read much appreciated.
Sean
Tecnologia, programação e muito Visual FoxPro.
domingo, 9 de janeiro de 2011
[Access VBA Central] Excel VBA to Access / Pathfinding
__._,_.___
.
__,_._,___
Assinar:
Postar comentários (Atom)
Arquivo do blog
-
▼
2011
(2561)
-
▼
janeiro
(152)
- Bls: ]] XL-mania [[ Overtime
- ]] XL-mania [[ tag warna pada data
- ]] XL-mania [[ mengurutkan daftar nama hanya sekali
- Bls: ]] XL-mania [[ category date jadi numeric
- Bls: ]] XL-mania [[ klasifikasi jenis kelamin ke s...
- Re: ]] XL-mania [[ Transpose Data
- Bls: ]] XL-mania [[ Transpose Data
- Re: ]] XL-mania [[ klasifikasi jenis kelamin ke sh...
- ]] XL-mania [[ Penjumlahan Dinamis
- Re: ]] XL-mania [[ klasifikasi jenis kelamin ke sh...
- ]] XL-mania [[ Automatically repeat items
- Re: ]] XL-mania [[ me"MUTILASI" nomor dokumen
- Bls: ]] XL-mania [[ membangun sistem HRIS via exce...
- [Access VBA Central] Need Help
- Re: ]] XL-mania [[ multiple-criteria-lookup-with-m...
- ]] XL-mania [[ klasifikasi jenis kelamin ke sheet ...
- Re: ]] XL-mania [[ multiple-criteria-lookup-with-m...
- Re: ]] XL-mania [[ Corrupt File Excel
- ]] XL-mania [[ Bagaimana cek qty loss shipping
- [Access VBA Central] (unknown)
- Re: ]] XL-mania [[ WarpText
- Re: ]] XL-mania [[ me"MUTILASI" nomor dokumen
- ]] XL-mania [[ Transpose Data
- Re: ]] XL-mania [[ me"MUTILASI" nomor dokumen
- Bls: ]] XL-mania [[ me"MUTILASI" nomor dokumen
- Re: ]] XL-mania [[ Menghitung Visible Cell bersyar...
- Re: ]] XL-mania [[ Menghitung Visible Cell bersyar...
- ]] XL-mania [[ Corrupt File Excel
- Re: ]] XL-mania [[ Auto Filter
- Re: ]] XL-mania [[ multiple-criteria-lookup-with-m...
- Bls: ]] XL-mania [[ Menghitung Visible Cell bersya...
- Re: ]] XL-mania [[ membuat/menyiapkan grafik dari ...
- Re: ]] XL-mania [[ multiple-criteria-lookup-with-m...
- Re: ]] XL-mania [[ vlookup dengan conditional
- Re: ]] XL-mania [[ vlookup dengan conditional
- Re: ]] XL-mania [[ Menghitung Visible Cell bersyar...
- ]] XL-mania [[ membuat/menyiapkan grafik dari sel ...
- Re: ]] XL-mania [[ Auto Filter
- Re: Fwd: ]] XL-mania [[ WarpText
- ]] XL-mania [[ multiple-criteria-lookup-with-multi...
- Re: ]] XL-mania [[ WarpText
- ]] XL-mania [[ Overtime
- Re: [usuarios_fox] Saludos-Ayuda
- RE: [usuarios_fox] Saludos-Ayuda
- ]] XL-mania [[ Menghitung Visible Cell bersyarat (...
- ]] XL-mania [[ vlookup dengan conditional
- Re: ]] XL-mania [[ Lookup by name
- Re: ]] XL-mania [[ Mengontrol Cell dengan Warna ot...
- Re: ]] XL-mania [[ Lookup by name
- Re: ]] XL-mania [[ Mengontrol Cell dengan Warna ot...
- ]] XL-mania [[ me"MUTILASI" nomor dokumen
- Re: ]] XL-mania [[ Fitur Kontrol sebelum mensave
- Re: ]] XL-mania [[ WarpText
- Bls: ]] XL-mania [[ Mengontrol Cell dengan Warna o...
- Re: ]] XL-mania [[ muncul otomatis tanpa pivot dgn...
- Re: ]] XL-mania [[ Mengontrol Cell dengan Warna ot...
- Re: ]] XL-mania [[ Membuat grafik dari cell yang b...
- Re: ]] XL-mania [[ membangun sistem HRIS via excel...
- Re: ]] XL-mania [[ WarpText
- ]] XL-mania [[ Membuat grafik dari cell yang beris...
- ]] XL-mania [[ Mengontrol Cell dengan Warna otomatis
- ]] XL-mania [[ muncul otomatis tanpa pivot dgn 2 k...
- Re: ]] XL-mania [[ Cara Menghilangkan Data Selain ...
- Re: ]] XL-mania [[ category date jadi numeric
- Re: ]] XL-mania [[ Lookup by name
- ]] XL-mania [[ membangun sistem HRIS via excel, ba...
- [usuarios_fox] Saludos-Ayuda
- ]] XL-mania [[ File - rules_and_tips
- Re: ]] XL-mania [[ Formula Untuk Menandai Item "te...
- Re: ]] XL-mania [[ category date jadi numeric
- Re: ]] XL-mania [[ Menarik Data dari kolom yg sama...
- Re: ]] XL-mania [[ Formula Untuk Menandai Item "te...
- Bls: ]] XL-mania [[ Formula Untuk Menandai Item "t...
- ]] XL-mania [[ Formula Untuk Menandai Item "termah...
- Re: ]] XL-mania [[ jadwal kongkow2
- ]] XL-mania [[ WarpText
- ]] XL-mania [[ Auto Filter
- ]] XL-mania [[ Lookup by name
- ]] XL-mania [[ Cara Menghilangkan Data Selain Maks...
- ]] XL-mania [[ Fitur Kontrol sebelum mensave
- Re: ]] XL-mania [[ Merubah tanggal pada macro
- Bls: ]] XL-mania [[ Mencari tanggal berdasarkan in...
- ]] XL-mania [[ jadwal kongkow2
- ]] XL-mania [[ Menarik Data dari kolom yg sama ke ...
- ]] XL-mania [[ category date jadi numeric
- Re: ]] XL-mania [[ jadwal pelajaran
- Re: ]] XL-mania [[ jadwal pelajaran
- ]] XL-mania [[ Mencari tanggal berdasarkan indeks
- Bls: ]] XL-mania [[ jadwal pelajaran
- Re: ]] XL-mania [[ Contoh Applikasi Kasir VBA
- ]] XL-mania [[ Merubah tanggal pada macro
- Re: ]] XL-mania [[ Mengurangi total hutang sesuai ...
- Re: ]] XL-mania [[ Mengurangi total hutang sesuai ...
- ]] XL-mania [[ Contoh Applikasi Kasir VBA
- Re: ]] XL-mania [[ membikin userform full screen
- Re: ]] XL-mania [[ background sheet di semua sheet
- Re: ]] XL-mania [[ validation
- Re: ]] XL-mania [[ Mengurangi total hutang sesuai ...
- Re: ]] XL-mania [[ report rumit
- Bls: ]] XL-mania [[ membuat daftar nilai siswa
-
▼
janeiro
(152)
Nenhum comentário:
Postar um comentário